]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/NewStatementImpl.java
Use java.util.Consumer instead of os.utils.datastructures.Callback
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / NewStatementImpl.java
index 77cda628a26f1c17d19768f466d0166394ae7e5a..518be61d42e73a2467f1a2835e507b61088dbaf5 100644 (file)
@@ -26,7 +26,7 @@ public class NewStatementImpl implements Statement {
             throw new IllegalArgumentException();
         if(null == predicate)
             throw new IllegalArgumentException();
-        if(null == predicate)
+        if(null == object)
             throw new IllegalArgumentException();
         this.subject = (ResourceImpl)subject;
         this.predicate = (ResourceImpl)predicate;