mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
+2
-3
@@ -73,9 +73,8 @@ class DiscoveredTestsTreeModel extends BaseTreeModel<Object> {
|
||||
}
|
||||
|
||||
List<Node.Method> testMethods = myTests.get(myTestClasses.get(idx));
|
||||
int methodIdx = ReadAction.compute(() -> Collections.binarySearch(testMethods,
|
||||
methodNode,
|
||||
(o1, o2) -> Comparing.compare(o1.getName(), o2.getName())));
|
||||
int methodIdx = methodNode != null ? ReadAction.compute(() -> Collections.binarySearch(testMethods, methodNode, (o1, o2) -> Comparing.compare(o1.getName(), o2.getName())))
|
||||
: -1;
|
||||
|
||||
Node.Method actualMethodNode;
|
||||
if (methodIdx < 0) {
|
||||
|
||||
Reference in New Issue
Block a user