Skip to content

Commit

Permalink
safety null check
Browse files Browse the repository at this point in the history
  • Loading branch information
garfieldnate committed Dec 3, 2024
1 parent fa0c98e commit b06855e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public void mouseClicked(MouseEvent e) {
FakeTreeNode ftn = ((FakeTreeNode) path.getLastPathComponent());
if (ftn == null) return;
NamedEdge ne = ftn.getEdge();
if (ne.isGenerated() && (ne.getNode() != null)) {
if (ne != null && ne.isGenerated() && (ne.getNode() != null)) {
(ne.getNode()).openRules(MainFrame.getMainFrame(), ne.getLine());
}
}
Expand Down

0 comments on commit b06855e

Please sign in to comment.