Skip to content

Commit

Permalink
Merge pull request #4234 from sbesson/cv7000_close_npe
Browse files Browse the repository at this point in the history
CV7000: handle NullPointerException when resetting allFiles in close()
  • Loading branch information
melissalinkert authored Sep 16, 2024
2 parents 2314528 + 9e3c38b commit 686371d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/formats-gpl/src/loci/formats/in/CV7000Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ public void close(boolean fileOnly) throws IOException {
reversePlaneLookup = null;
extraFiles = null;
acquiredWells.clear();
allFiles.clear();
if (allFiles != null) {
allFiles.clear();
} else {
allFiles = new ArrayList<String>();
}
}
}

Expand Down

0 comments on commit 686371d

Please sign in to comment.