X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FAbstractVariable.java;h=110ed2f777471aeef7e15128baa2381f3964d824;hb=15af8a20abe8b2ba24b52c9da8bce6c92351dc43;hp=00b01cca6031f967c315f37ed2d2c147f3a20c62;hpb=321607bdbd3ca800128d40b5511092f71cb66367;p=simantics%2Fplatform.git 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; }