From: Marko Luukkainen Date: Thu, 19 Nov 2020 08:33:25 +0000 (+0200) Subject: Fix NPE in Export Core X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F4614%2F1;p=simantics%2Fplatform.git Fix NPE in Export Core gitlab #642 Change-Id: Iee0d7bc9f03a99339e00223d9b61a60abd40a3f4 --- diff --git a/bundles/org.simantics.export.core/src/org/simantics/export/core/manager/Content.java b/bundles/org.simantics.export.core/src/org/simantics/export/core/manager/Content.java index 55baf5bd3..8a1fc5ec1 100644 --- a/bundles/org.simantics.export.core/src/org/simantics/export/core/manager/Content.java +++ b/bundles/org.simantics.export.core/src/org/simantics/export/core/manager/Content.java @@ -50,6 +50,10 @@ public class Content { @Override public boolean equals(Object o) { + if (o == null) + return false; + if (o.getClass() != getClass()) + return false; Content other = (Content) o; if ( !other.formatId.equals(formatId) ) return false; if ( !other.url.equals(url) ) return false;