From: Tuukka Lehtonen Date: Mon, 1 Jun 2020 15:11:13 +0000 (+0300) Subject: Contextual adapters must throw instead of returning null X-Git-Tag: v1.43.0~19 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F52%2F4252%2F1;p=simantics%2Fplatform.git Contextual adapters must throw instead of returning null gitlab #540 Change-Id: I98cb667afcc6e54d41afc6c0a25051c5ee7b49b3 (cherry picked from commit 4e8f62e4f5a8da113ee576a856b18274ca2a472f) --- diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/chart/property/ObtainedDoubleAdapter.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/chart/property/ObtainedDoubleAdapter.java index 79f32fcd2..ff257169c 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/chart/property/ObtainedDoubleAdapter.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/chart/property/ObtainedDoubleAdapter.java @@ -20,6 +20,7 @@ import org.simantics.db.RelationContext; import org.simantics.db.Resource; import org.simantics.db.Statement; import org.simantics.db.common.adaption.SimpleContextualAdapter; +import org.simantics.db.exception.AdaptionException; import org.simantics.db.exception.DatabaseException; import org.simantics.db.layer0.property.OrderedResource; import org.simantics.operation.Layer0X; @@ -46,7 +47,7 @@ public class ObtainedDoubleAdapter extends SimpleContextualAdapter