From: Jussi Koskela Date: Wed, 2 Aug 2017 10:23:34 +0000 (+0300) Subject: PropertyMap.get does not return null if there is no mapping for the key X-Git-Tag: v1.31.0~264^2~8^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=214582bae00873fb90141b41d030e9c173a72e5f;p=simantics%2Fplatform.git PropertyMap.get does not return null if there is no mapping for the key This is against the Map interface specification. refs #7403 Change-Id: I3235b823f670f09b372febb6746a3c3209cdc30c --- diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractVariable.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractVariable.java index 3d527e039..d9366b132 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractVariable.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractVariable.java @@ -302,7 +302,7 @@ public abstract class AbstractVariable implements Variable { if(Variables.TYPE.equals(key)) return getTypeVariable(); else if(Variables.URI.equals(key)) return getURIVariable(); - return variable; + return null; } }