mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't NPE in tests
This commit is contained in:
@@ -120,7 +120,13 @@ public class EventLog implements Notifications {
|
||||
}
|
||||
view.print("\n", ConsoleViewContentType.NORMAL_OUTPUT);
|
||||
|
||||
((StatusBarEx)WindowManager.getInstance().getIdeFrame(project).getStatusBar()).setLogMessage(mainText);
|
||||
final IdeFrame frame = WindowManager.getInstance().getIdeFrame(project);
|
||||
if (frame != null) {
|
||||
final StatusBar statusBar = frame.getStatusBar();
|
||||
if (statusBar != null) {
|
||||
((StatusBarEx)statusBar).setLogMessage(mainText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static int eolIndex(String mainText) {
|
||||
|
||||
Reference in New Issue
Block a user