]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/schema/DynamicSimpleLinkType.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / graph / schema / DynamicSimpleLinkType.java
index bc436288809cfb87e51fde91337fb3ae3ebac620..0abd423c9213bc49ab288db9fb2b7130cbc8e5da 100644 (file)
@@ -86,7 +86,7 @@ public class DynamicSimpleLinkType<Range> extends SimpleLinkType<Range>{
                } catch (IllegalAccessException e) {\r
                         throw new MappingException(e);\r
                } catch (InvocationTargetException e) {\r
-                        throw new MappingException(e);\r
+                        throw new MappingException(e.getCause());\r
                }\r
     }\r
        \r
@@ -117,7 +117,7 @@ public class DynamicSimpleLinkType<Range> extends SimpleLinkType<Range>{
                        } catch (IllegalArgumentException e) {\r
                                throw new MappingException(e);\r
                        } catch (InvocationTargetException e) {\r
-                               throw new MappingException(e);\r
+                               throw new MappingException(e.getCause());\r
                        } \r
            }\r
 \r