From fe2c4e885c211ec1df1277216c70e61a762dda93 Mon Sep 17 00:00:00 2001 From: Christian Partl Date: Thu, 25 Sep 2014 16:01:17 +0200 Subject: [PATCH] fixed NPE in importer --- .../caleydo/core/io/gui/dataimport/wizard/DataSetTypePage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/wizard/DataSetTypePage.java b/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/wizard/DataSetTypePage.java index 5b154338d5..5a0887bd04 100644 --- a/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/wizard/DataSetTypePage.java +++ b/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/wizard/DataSetTypePage.java @@ -155,7 +155,8 @@ public void fillDataSetDescription() { public void pageActivated() { // The user must always visit the next page before he can finish // updateWidgets(); - if (dataSetDescription.getDataDescription().getCategoricalClassDescription() != null) { + if (dataSetDescription.getDataDescription() != null + && dataSetDescription.getDataDescription().getCategoricalClassDescription() != null) { numericalDatasetButton.setSelection(false); categoricalDatasetButton.setSelection(true); } else {