Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Task #89 - Error parsing file
  • Loading branch information
albilu committed Dec 23, 2023
1 parent 28b2657 commit 2d8f02d
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,16 @@ public void refresh(Set<URL> set) {
toRefresh.add(URLMapper.findFileObject(t));
});

fireFileStatusChanged(new FileStatusEvent(toRefresh.iterator().next()
.getFileSystem(), toRefresh, true, false));
if (toRefresh.iterator().hasNext()) {
FileObject next = toRefresh.iterator().next();
if (next == null) {
return;
}

fireFileStatusChanged(new FileStatusEvent(next
.getFileSystem(), toRefresh, true, false));
}

} catch (FileStateInvalidException ex) {
Exceptions.printStackTrace(ex);
}
Expand Down

0 comments on commit 2d8f02d

Please sign in to comment.