From 592cade6e815badb02f2e276a97dce16a7ab632b Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 27 Mar 2017 13:49:31 +0300 Subject: [PATCH] be ready method can throw unchecked exceptions, e.g. PCE in highlighting - to fix EA-98206 - AUCRRAE: ReadMostlyRWLock.a --- platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java | 3 +++ 1 file changed, 3 insertions(+) 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); } }