]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/AbstractVariable.java
Do not compute replaceable type for non ReplaceableDefinedComponentTypes
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / AbstractVariable.java
index 00b01cca6031f967c315f37ed2d2c147f3a20c62..110ed2f777471aeef7e15128baa2381f3964d824 100644 (file)
@@ -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;
         }