]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/range/ListAccessor.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / graph / rules / range / ListAccessor.java
index 5f79c58568836c3aff430c0f085576d72290baaa..a384235be4021a49be6e3ccec5e66c3155308791 100644 (file)
@@ -52,7 +52,7 @@ public class ListAccessor<Range,T>  implements IRangeAccessor<Range,Collection<T
                } 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
@@ -86,7 +86,7 @@ public class ListAccessor<Range,T>  implements IRangeAccessor<Range,Collection<T
                } 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