From d628abeee07f11d70a0d839374e8878ef9af19e9 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Thu, 19 Nov 2020 10:33:25 +0200 Subject: [PATCH] Fix NPE in Export Core gitlab #642 Change-Id: Iee0d7bc9f03a99339e00223d9b61a60abd40a3f4 --- .../src/org/simantics/export/core/manager/Content.java | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.1