From 214582bae00873fb90141b41d030e9c173a72e5f Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Wed, 2 Aug 2017 13:23:34 +0300 Subject: [PATCH] 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 --- .../src/org/simantics/db/layer0/variable/AbstractVariable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.47.1