Skip to content

Commit

Permalink
bugfix: nullpointerexception
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Jun 12, 2021
1 parent 3a2238c commit 350f06f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,10 @@ protected PopupMenu buildPopup(MouseEvent e) {
for (int i = 0; i < 2; i++) {
for (String name : favNames) {
CLIJMacroPlugin clijPlugin = CLIJMacroPluginService.getInstance().getService().getCLIJMacroPlugin(name);
if (clijPlugin == null) {
System.out.println("Warning: No plugin found for: " + name);
continue;
}
if (
(isSuitable(clijPlugin, this) && isReasonable(clijPlugin, this) && i == 0) ||
(((!isSuitable(clijPlugin, this)) || (!isReasonable(clijPlugin, this))) && i == 1)) {
Expand Down

0 comments on commit 350f06f

Please sign in to comment.