From: Reino Ruusu Date: Wed, 17 Apr 2019 14:52:34 +0000 (+0300) Subject: Block exceptions actually caused by pending values from console. X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=6e4f421de6ed1b7c4a8d98bd490f075acfd19f67;p=simantics%2Fdistrict.git Block exceptions actually caused by pending values from console. MissingVariableValueExceptions are thrown by getProperty() calls when pending values are cached for domain properties. gitlab #44 Change-Id: I2ca32821feb020defad4e55f2dd5893e9d4083f7 --- diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoStyle.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoStyle.java index 590903e0..ddcf1dde 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoStyle.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoStyle.java @@ -11,6 +11,7 @@ import org.simantics.db.Resource; import org.simantics.db.common.procedure.adapter.TransientCacheListener; import org.simantics.db.common.request.ResourceRead; import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.exception.MissingVariableValueException; import org.simantics.db.layer0.exception.PendingVariableException; import org.simantics.db.layer0.util.Layer0Utils; import org.simantics.db.layer0.variable.Variable; @@ -99,7 +100,7 @@ public class DistrictNetworkHoverInfoStyle extends StyleBase", "", "")); }