Przeglądaj źródła

Might have solved nullpointer exception in showNewDataSet

- added if Statement in line 319
- hope doesn't break anything
Julian Ohl 8 lat temu
rodzic
commit
492a81253f

+ 3 - 1
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/ui/PropertiesManager.java

@@ -316,7 +316,9 @@ public final class PropertiesManager {
 			break;
 			default:
 				Object actualAttribute = selected.getAttribute(key);
-				newData.add(new KeyValuePair(key, String.valueOf(actualAttribute), actualAttribute.getClass()));
+				if(actualAttribute != null){
+					newData.add(new KeyValuePair(key, String.valueOf(actualAttribute), actualAttribute.getClass()));
+				}
 				break;
 			}
 		}