Skip to content

Commit

Permalink
Merge pull request #4188 from melissalinkert/gh-4184
Browse files Browse the repository at this point in the history
Fix a few string comparisons, fixes #4184
  • Loading branch information
dgault authored Jun 12, 2024
2 parents bf2c462 + 5f04621 commit a1d05e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/formats-bsd/src/loci/formats/gui/PreviewPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ public void run() {

try { // catch-all for unanticipated exceptions
final String id = loadId;
if (id == lastId) continue;
if ((id == null && lastId == null) || (id != null && id.equals(lastId))) {
continue;
}
if (id != null && lastId != null) {
String[] files = reader.getUsedFiles();
boolean found = false;
Expand Down Expand Up @@ -260,7 +262,7 @@ public void run() {
lastId = null;
continue;
}
if (id != loadId) {
if (!id.equals(loadId)) {
SwingUtilities.invokeLater(refresher);
continue;
}
Expand Down

0 comments on commit a1d05e4

Please sign in to comment.