avoid NPE in propertyChange. fix for #19703 BLD200201290100
authormkleint@netbeans.org
Thu, 24 Jan 2002 18:28:46 +0000
changeset 20271edc838b8d82
parent 2026 7b1785db7b95
child 2028 64b9c0051087
avoid NPE in propertyChange. fix for #19703
vcscore/src/org/netbeans/modules/vcscore/grouping/VcsGroupChildren.java
     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++) {