CIDR: debugger: (testing) Fix NPE in assertVariableTypeMatches()

This commit is contained in:
Eldar Abusalimov
2019-03-01 15:05:19 +03:00
parent d18005b69a
commit 658b28cda4
@@ -400,7 +400,8 @@ public class XDebuggerTestUtil {
assertEquals(name, node.myName);
}
if (typePattern != null) {
assertTrue("Expected type: " + typePattern + " Actual type: " + node.myType, node.myType.matches(typePattern));
assertTrue("Expected type: " + typePattern + " Actual type: " + node.myType,
node.myType != null && node.myType.matches(typePattern));
}
}