Skip to content

Commit f0b403d

Browse files
committed
PivotUI: guard against nulls
1 parent 311e6e7 commit f0b403d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/main/java/org/scijava/ui/pivot/PivotUI.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ public class PivotUI extends AbstractUserInterface implements Runnable {
7777

7878
@Override
7979
public PivotApplicationFrame getApplicationFrame() {
80-
return app.getApplicationFrame();
80+
return app == null ? null : app.getApplicationFrame();
8181
}
8282

8383
@Override
8484
public PivotToolBar getToolBar() {
85-
return app.getToolBar();
85+
return app == null ? null : app.getToolBar();
8686
}
8787

8888
@Override
8989
public PivotStatusBar getStatusBar() {
90-
return app.getStatusBar();
90+
return app == null ? null : app.getStatusBar();
9191
}
9292

9393
@Override

0 commit comments

Comments
 (0)