mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CIDR: debugger: (testing) Fix NPE in assertVariableTypeMatches()
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user