Skip to content

Commit

Permalink
Fix possible NullPointerException in RdfMap.close(). (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Feb 21, 2025
1 parent 3063446 commit fb7f6d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ private String read(final String url) throws IOException {
@Override
public void close() {
map.clear();
model.close();

if (model != null) {
model.close();
}
}

private enum Select {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,5 @@ public void close() throws IOException {
map.clear();
fileOpener.closeStream();
}

}

0 comments on commit fb7f6d0

Please sign in to comment.