]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/range/CollectionAccessor.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / graph / rules / range / CollectionAccessor.java
index c3569ed4242f78e93cd0007663004299de2413d1..d2b9f8377167b1e04377325c804f4ace83866c87 100644 (file)
@@ -51,7 +51,7 @@ public class CollectionAccessor<Range,T>  implements IRangeAccessor<Range,Collec
                } 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
@@ -83,7 +83,7 @@ public class CollectionAccessor<Range,T>  implements IRangeAccessor<Range,Collec
                } 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
                return removing.size() > 0 || adding.size() > 0;\r
                \r