import org.simantics.db.layer0.request.UnescapedPropertyMapOfResource;
import org.simantics.db.layer0.variable.ValueAccessor;
import org.simantics.db.layer0.variable.Variable;
+import org.simantics.diagram.Logger;
import org.simantics.layer0.Layer0;
import org.simantics.scl.runtime.SCLContext;
import org.simantics.scl.runtime.function.Function1;
ExternalValue ev = graph.adapt(converter, ExternalValue.class);
if(ev instanceof ConverterExternalValue) {
- ConverterExternalValue cev = (ConverterExternalValue)ev;
- Function1 fn = cev.getFunction(graph, resource, value, pi.predicate);
- return new ImmutableComponentPropertyContent(pi, value, null, fn);
+ ConverterExternalValue cev = (ConverterExternalValue)ev;
+ try {
+ Function1 fn = cev.getFunction(graph, resource, value, pi.predicate);
+ return new ImmutableComponentPropertyContent(pi, value, null, fn);
+ } catch (DatabaseException e) {
+ Logger.defaultLogError(e);
+ }
} else {
System.err.println("Undefined converter " + graph.getURI(converter));
}