Commit 8cc1736
committed
ModuleSearchResult: be more defensive when checking menu leaf
When info.getMenuPath().getLeaf() was null (as is the case for net.imagej.updater.PromptUserToUpdate), the context() method was throwing a NullPointerException.
Let's be more defensive and avoid calling the toString() method on MenuEntry.1 parent 6105bdd commit 8cc1736
File tree
1 file changed
+1
-1
lines changed- src/main/java/org/scijava/search/module
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments