Skip to content

Commit 1b25c58

Browse files
committed
ShadowMenu: fix compilation error
1 parent 7ac4926 commit 1b25c58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/scijava/menu/ShadowMenu.java

+7
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,13 @@ public URL getIconURL() {
238238
}
239239
return iconURL;
240240
}
241+
catch (final ClassNotFoundException exc) {
242+
final String message = "Failed to load class: " +
243+
moduleInfo.getDelegateClassName();
244+
if (log.isDebug()) log.debug(message, exc);
245+
else log.error(message);
246+
return null;
247+
}
241248
catch (final IllegalArgumentException exc) {
242249
final String message = "Could not load icon for class: " +
243250
moduleInfo.getDelegateClassName();

0 commit comments

Comments
 (0)