From 7d8c0c24b418fa2bc67a2fc7b2c8df464b453d9c Mon Sep 17 00:00:00 2001 From: Mathieu Bastian Date: Wed, 28 Sep 2011 21:14:03 -0700 Subject: [PATCH] Fix NPE in VizModel --- .../src/org/gephi/visualization/VizModel.java | 6 ++++-- nbproject/private/private.xml | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/VisualizationModule/src/org/gephi/visualization/VizModel.java b/VisualizationModule/src/org/gephi/visualization/VizModel.java index 95b7b2de9..c3d3c8380 100644 --- a/VisualizationModule/src/org/gephi/visualization/VizModel.java +++ b/VisualizationModule/src/org/gephi/visualization/VizModel.java @@ -90,8 +90,10 @@ public void init() { SwingUtilities.invokeLater(new Runnable() { public void run() { - for (PropertyChangeListener l : listeners) { - l.propertyChange(evt); + if (listeners != null) { + for (PropertyChangeListener l : listeners) { + l.propertyChange(evt); + } } } }); diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml index cc2c0e57c..c1f155a78 100644 --- a/nbproject/private/private.xml +++ b/nbproject/private/private.xml @@ -1,4 +1,4 @@ - - - - + + + +