We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fcb52c commit 00a3cf7Copy full SHA for 00a3cf7
src/main/java/org/scijava/menu/ShadowMenu.java
@@ -493,7 +493,7 @@ public <T> T[] toArray(final T[] a) {
493
// -- Helper methods --
494
495
private ShadowMenu addInternal(final ModuleInfo o) {
496
- if (o.getMenuPath().isEmpty()) return null; // no menu
+ if (o.getMenuPath() == null || o.getMenuPath().isEmpty()) return null; // no menu
497
return addChild(o, 0);
498
}
499
0 commit comments