]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/range/GetSetObjectAccessor.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / graph / rules / range / GetSetObjectAccessor.java
index 65808d53ed13d8d10c192aa381e347d837d8541c..befd2fda04bff1707a699f6126954a5838479ebf 100644 (file)
@@ -47,7 +47,7 @@ public class GetSetObjectAccessor<Range,T>  implements IRangeAccessor<Range,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
@@ -61,7 +61,7 @@ public class GetSetObjectAccessor<Range,T>  implements IRangeAccessor<Range,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 true;\r
                \r