From 90e328998db9744c1ac7aa4b8f07785fc5f1ca20 Mon Sep 17 00:00:00 2001 From: luukkainen Date: Thu, 24 Jan 2013 13:31:26 +0000 Subject: [PATCH] equals check did not expect null parameter. refs #3988 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26677 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/jfreechart/chart/properties/ChartVariable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/properties/ChartVariable.java b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/properties/ChartVariable.java index 1498b47a..331f3fff 100644 --- a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/properties/ChartVariable.java +++ b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/properties/ChartVariable.java @@ -36,6 +36,8 @@ public class ChartVariable { @Override public boolean equals(Object obj) { + if (obj == null) + return false; if (obj.getClass() != getClass()) return false; ChartVariable other = (ChartVariable)obj; -- 2.47.1