From 4e8f62e4f5a8da113ee576a856b18274ca2a472f Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 1 Jun 2020 18:11:13 +0300 Subject: [PATCH] Contextual adapters must throw instead of returning null gitlab #540 Change-Id: I98cb667afcc6e54d41afc6c0a25051c5ee7b49b3 --- .../modeling/ui/chart/property/ObtainedDoubleAdapter.java | 3 ++- .../modeling/ui/diagram/monitor/ObtainedColorAdapter.java | 3 ++- .../modeling/ui/diagram/monitor/ObtainedExpressionAdapter.java | 3 ++- .../modeling/ui/diagram/monitor/ObtainedFontAdapter.java | 3 ++- .../modeling/ui/diagram/monitor/ObtainedFormatterAdapter.java | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) 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