Caused by: java.lang.NullPointerException:
at org.gedcom4j.parser.FamilyEventParser.parse(FamilyEventParser.java:134)
at org.gedcom4j.parser.FamilyParser.parse(FamilyParser.java:129)
at org.gedcom4j.parser.GedcomParser.loadRootItem(GedcomParser.java:571)
at org.gedcom4j.parser.GedcomParser.parseAndLoadPreviousStringTree(GedcomParser.java:626)
at org.gedcom4j.parser.GedcomParser.load(GedcomParser.java:320)
at no.haraluna.rootsmap.model.loading.LoadGedcomTask.doInBackground(LoadGedcomTask.java:120)
at no.haraluna.rootsmap.model.loading.LoadGedcomTask.doInBackground(LoadGedcomTask.java:39)
I assume adding a null check to ch.getChildren() would be ok.
133 } else if (Tag.HUSBAND.equalsText(ch.getTag())) {
134 loadInto.setHusbandAge(parseStringWithCustomFacts(ch.getChildren().get(0)));
135 } else if (Tag.WIFE.equalsText(ch.getTag())) {
136 loadInto.setWifeAge(parseStringWithCustomFacts(ch.getChildren().get(0)));
Caused by: java.lang.NullPointerException: at org.gedcom4j.parser.FamilyEventParser.parse(FamilyEventParser.java:134) at org.gedcom4j.parser.FamilyParser.parse(FamilyParser.java:129) at org.gedcom4j.parser.GedcomParser.loadRootItem(GedcomParser.java:571) at org.gedcom4j.parser.GedcomParser.parseAndLoadPreviousStringTree(GedcomParser.java:626) at org.gedcom4j.parser.GedcomParser.load(GedcomParser.java:320) at no.haraluna.rootsmap.model.loading.LoadGedcomTask.doInBackground(LoadGedcomTask.java:120) at no.haraluna.rootsmap.model.loading.LoadGedcomTask.doInBackground(LoadGedcomTask.java:39)
I assume adding a null check to ch.getChildren() would be ok.
133 } else if (Tag.HUSBAND.equalsText(ch.getTag())) { 134 loadInto.setHusbandAge(parseStringWithCustomFacts(ch.getChildren().get(0))); 135 } else if (Tag.WIFE.equalsText(ch.getTag())) { 136 loadInto.setWifeAge(parseStringWithCustomFacts(ch.getChildren().get(0)));