fix NPE in indexing file annotations
Merge pull request #1183 from mtbc/fileannotation-npe

fix NPE in indexing file annotations