Skip to content

Commit

Permalink
ShadowMenu: fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
hinerm committed Dec 3, 2024
1 parent 7ac4926 commit 1b25c58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/scijava/menu/ShadowMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ public URL getIconURL() {
}
return iconURL;
}
catch (final ClassNotFoundException exc) {
final String message = "Failed to load class: " +
moduleInfo.getDelegateClassName();
if (log.isDebug()) log.debug(message, exc);
else log.error(message);
return null;
}
catch (final IllegalArgumentException exc) {
final String message = "Could not load icon for class: " +
moduleInfo.getDelegateClassName();
Expand Down

0 comments on commit 1b25c58

Please sign in to comment.