]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fix NPE in Export Core 14/4614/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 19 Nov 2020 08:33:25 +0000 (10:33 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 19 Nov 2020 08:33:25 +0000 (10:33 +0200)
gitlab #642

Change-Id: Iee0d7bc9f03a99339e00223d9b61a60abd40a3f4

bundles/org.simantics.export.core/src/org/simantics/export/core/manager/Content.java

index 55baf5bd388182d20b44dab3e6c4e6a8c3461a99..8a1fc5ec1c41517f179838907d4b9729e73da4c9 100644 (file)
@@ -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;