Skip to content

Commit 9b7c6bb

Browse files
committed
MenuPath: handle null collection more nicely
1 parent 846937a commit 9b7c6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/MenuPath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public MenuPath() {
5656
* the argument will make a copy.
5757
*/
5858
public MenuPath(final Collection<? extends MenuEntry> menuEntries) {
59-
addAll(menuEntries);
59+
if (menuEntries != null) addAll(menuEntries);
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)