]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.export.core/src/org/simantics/export/core/manager/Content.java
Fix NPE in Export Core
[simantics/platform.git] / 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;