Skip to content

Commit

Permalink
Prevent NPE for EB and EC context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
dsand47 committed Jun 2, 2019
1 parent e52d1e4 commit 79bd1a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ public void actionPerformed(ActionEvent e) {
popup.add(connectionsMenu);
}

if ((type == EDGE_CONNECTOR) || (type == END_BUMPER)) {
if (connect1 != null && (type == EDGE_CONNECTOR || type == END_BUMPER)) {
//
// decorations menu
//
Expand Down

0 comments on commit 79bd1a3

Please sign in to comment.