Skip to content
Permalink
Browse files

Prevent NPE for EB and EC context menu

  • Loading branch information...
dsand47 committed Jun 2, 2019
1 parent e52d1e4 commit 79bd1a3b44c4531dd9f17ee54a4e2896450ebc3c
Showing with 1 addition and 1 deletion.
  1. +1 −1 java/src/jmri/jmrit/display/layoutEditor/PositionablePoint.java
@@ -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
//

0 comments on commit 79bd1a3

Please sign in to comment.
You can’t perform that action at this time.