Skip to content
Snippets Groups Projects
Commit d38b4254 authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

goodbye null pointer exceptions???

parent c5ecafbf
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,9 @@ public class FileProcessor {
int errorCount=0; // TESTING ONLY
if (!matchEventId.group(10).equals("NA")) {
try{
al.add(createRecord(Integer.parseInt(matchEventId.group(3)), matchEventId.group(1), BioTree.processRecord(matchEventId.group(10)), Integer.parseInt(matchEventId.group(2)), Float.parseFloat(matchEventId.group(7)), Float.parseFloat(matchEventId.group(8)), Integer.parseInt(matchEventId.group(4)), Integer.parseInt(matchEventId.group(5)), Integer.parseInt(matchEventId.group(6))));
Integer taxonId = BioTree.processRecord(matchEventId.group(10));
if (taxonId != null)
al.add(createRecord(Integer.parseInt(matchEventId.group(3)), matchEventId.group(1), taxonId, Integer.parseInt(matchEventId.group(2)), Float.parseFloat(matchEventId.group(7)), Float.parseFloat(matchEventId.group(8)), Integer.parseInt(matchEventId.group(4)), Integer.parseInt(matchEventId.group(5)), Integer.parseInt(matchEventId.group(6))));
} catch(IOException e) {
System.out.println("Input Error:" + e);
} catch(NullPointerException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment