diff --git a/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java b/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java index 669249084a47..808c24ca3e4e 100644 --- a/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java +++ b/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java @@ -61,6 +61,9 @@ class PropertyAccessor implements MutableAccessor { throw new XmlSerializationException(e); } catch (InvocationTargetException e) { + Throwable exception = e.getTargetException(); + if (exception instanceof Error) throw (Error)exception; + if (exception instanceof RuntimeException) throw (RuntimeException)exception; throw new XmlSerializationException(e); } }