fix yet another test - new exception type is thrown for Kotlin-checked NPE

GitOrigin-RevId: ba1b4782df6b3627f5d337d14c6ac5915ba34b82
This commit is contained in:
Eugene Petrenko
2020-09-18 23:00:18 +00:00
committed by intellij-monorepo-bot
parent 7eb16ab8eb
commit 11c6134b4a
@@ -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:")) {