From ec33587ec7f32f554819aa0e7f006beeed614952 Mon Sep 17 00:00:00 2001 From: dzmipt Date: Fri, 12 Jan 2024 16:08:11 +0100 Subject: [PATCH] fix potential NPE --- src/studio/ui/TabPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/studio/ui/TabPanel.java b/src/studio/ui/TabPanel.java index 71e51c0f..168528b3 100755 --- a/src/studio/ui/TabPanel.java +++ b/src/studio/ui/TabPanel.java @@ -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(); }