mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-24522 - NPE: TestsOutputConsolePrinter.isRoot
This commit is contained in:
+2
-2
@@ -118,11 +118,11 @@ public class TestsOutputConsolePrinter implements Printer, Disposable {
|
||||
}
|
||||
|
||||
public boolean isCurrent(CompositePrintable printable) {
|
||||
return myCurrentTest == printable || (isRoot() && myUnboundOutputRoot != null);
|
||||
return myCurrentTest == printable || isRoot();
|
||||
}
|
||||
|
||||
private boolean isRoot() {
|
||||
return myCurrentTest.getParent() == myUnboundOutputRoot;
|
||||
return myCurrentTest != null && myCurrentTest.getParent() == myUnboundOutputRoot;
|
||||
}
|
||||
|
||||
public void printHyperlink(final String text, final HyperlinkInfo info) {
|
||||
|
||||
Reference in New Issue
Block a user