Skip to content

Commit

Permalink
fix potential NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmipt committed Jan 12, 2024
1 parent 39f5cba commit ec33587
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/studio/ui/TabPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public class TabPanel extends JPanel {
public TabPanel(StudioWindow studioWindow, QueryResult queryResult) {
this.studioWindow = studioWindow;
this.queryResult = queryResult;
this.result = queryResult.getResult();
if (queryResult != null) {
this.result = queryResult.getResult();
}
initComponents();
}

Expand Down

0 comments on commit ec33587

Please sign in to comment.