Skip to content

Commit 6241b4d

Browse files
authored
Merge pull request #307 from vijay-shankaranand/master
Fix null json values
2 parents 1926df8 + c118db8 commit 6241b4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/seedu/address/storage/JsonJobFestGoStorage.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public Optional<ReadOnlyJobFestGo> readJobFestGo(Path filePath) throws DataLoadi
5656
} catch (IllegalValueException ive) {
5757
logger.info("Illegal values found in " + filePath + ": " + ive.getMessage());
5858
throw new DataLoadingException(ive);
59+
} catch (NullPointerException npe) {
60+
logger.info("Null pointer found in " + filePath + ": " + npe.getMessage());
61+
throw new DataLoadingException(npe);
5962
}
6063
}
6164

0 commit comments

Comments
 (0)