FamilySearch / gedcom5-java

Gedcom parsers
Apache License 2.0
68 stars 41 forks source link

getSubmitters() can return null #4

Closed michelesalvador closed 6 years ago

michelesalvador commented 6 years ago

I tried version 1.9.0 and I encountered one problem. With this version it's possible to parse a Json file only if it contains a subms key. Therefore Json files created with version 1.8.0 can no longer be opened because they don't have a subms key. This is due to Gedcom.createIndexes() that calls Gedcom.getSubmitters() that can return a null subms object. The same happens parsing a GEDCOM file: Gedcom.createIndexes() works only if the GEDCOM contains at least one SUBM tag.

stoicflame commented 6 years ago

Thanks for the report. Do you want to put together a pull request with the fix?

michelesalvador commented 6 years ago

Yes I will do that.