From 11c6134b4a1295810703ed92d1e5dd6e77538fbc Mon Sep 17 00:00:00 2001 From: Eugene Petrenko Date: Wed, 16 Sep 2020 20:58:51 +0200 Subject: [PATCH] fix yet another test - new exception type is thrown for Kotlin-checked NPE GitOrigin-RevId: ba1b4782df6b3627f5d337d14c6ac5915ba34b82 --- .../util/src/com/intellij/serialization/PropertyAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/serialization/PropertyAccessor.java b/platform/util/src/com/intellij/serialization/PropertyAccessor.java index 035d570fa4d6..ead2fa65a316 100644 --- a/platform/util/src/com/intellij/serialization/PropertyAccessor.java +++ b/platform/util/src/com/intellij/serialization/PropertyAccessor.java @@ -102,7 +102,7 @@ public final class PropertyAccessor implements MutableAccessor { catch (InvocationTargetException e) { Throwable cause = e.getCause(); // see KotlinXmlSerializerTest.nullInMap - if (cause instanceof IllegalArgumentException && + if (cause instanceof NullPointerException && myGenericType instanceof Class && ((Class)myGenericType).isEnum() && cause.getMessage().contains("Parameter specified as non-null is null:")) {