X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FAbstractVariable.java;h=110ed2f777471aeef7e15128baa2381f3964d824;hp=00b01cca6031f967c315f37ed2d2c147f3a20c62;hb=7e1ba415e6f14478c2aa682a89ed534e7044ac43;hpb=27cae6bcf184f7e27822886f5a7320f771913b71 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 00b01cca6..110ed2f77 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 @@ -966,7 +966,7 @@ public abstract class AbstractVariable implements Variable { Resource typeFromFunction = getTypeFromPossibleTypeFunction(graph, Layer0.getInstance(graph).Entity, getPossibleTypeFunction(graph)); if (typeFromFunction != null) return typeFromFunction; - } catch (Throwable t) { + } catch (DatabaseException t) { return null; } @@ -1002,7 +1002,7 @@ public abstract class AbstractVariable implements Variable { Resource typeFromFunction = getTypeFromPossibleTypeFunction(graph, baseType, getPossibleTypeFunction(graph)); if (typeFromFunction != null) return typeFromFunction; - } catch (Throwable t) { + } catch (DatabaseException t) { return null; }