avoid NPE in propertyChange. fix for #19703
1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/grouping/VcsGroupChildren.java Thu Jan 24 13:38:56 2002 +0000
1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/grouping/VcsGroupChildren.java Thu Jan 24 18:28:46 2002 +0000
1.3 @@ -164,6 +164,9 @@
1.4 }
1.5
1.6 public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent) {
1.7 + if (propertyChangeEvent.getPropertyName() == null) {
1.8 + return;
1.9 + }
1.10 if (propertyChangeEvent.getPropertyName().equals(VcsGroupSettings.PROP_SHOW_LINKS)) {
1.11 Node[] nods = getNodes();
1.12 for (int i = 0; i < nods.length; i++) {