]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/rules/range/CompoundGetSetValueAccessor.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / graph / rules / range / CompoundGetSetValueAccessor.java
index 126f1d0428d2d3755dfa652730a3802d4ff92308..7dac5f7f0c352edc38b256d947206846eb2663c9 100644 (file)
@@ -47,7 +47,7 @@ public class CompoundGetSetValueAccessor<Range,T>  implements IRangeAccessor<Ran
                } 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
@@ -65,7 +65,7 @@ public class CompoundGetSetValueAccessor<Range,T>  implements IRangeAccessor<Ran
                } 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