fix null pointer v_0 v0.17.1
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 23 Oct 2020 12:36:32 +0200
branchv_0
changeset 50 9008fd23fc17
parent 49 a3777909fd44
child 51 19c6ad5cf39c
fix null pointer address points to the zero page
src/RelpipeChartMainWindow.h
--- a/src/RelpipeChartMainWindow.h	Fri Oct 23 12:10:45 2020 +0200
+++ b/src/RelpipeChartMainWindow.h	Fri Oct 23 12:36:32 2020 +0200
@@ -49,8 +49,8 @@
 	Ui::RelpipeChartMainWindow widget;
 	QTabWidget* tabs = new QTabWidget(this);
 	QSplitter* splitter;
-	RelpipeTableModel* currentModel;
-	RelpipeChartWidget* currentChartWidget;
+	RelpipeTableModel* currentModel = nullptr;
+	RelpipeChartWidget* currentChartWidget = nullptr;
 	QLabel* status = new QLabel();
 	void setupKeyboardShortcuts();
 };