[hg] main-silver: #228048: guarded against null keys

  • From: Svata Dedic < >
  • To:
  • Subject: [hg] main-silver: #228048: guarded against null keys
  • Date: Fri, 29 Mar 2013 15:44:11 -0700

changeset f825287c5434 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f825287c5434
description:
        #228048: guarded against null keys

diffstat:

 editor.fold/src/org/netbeans/modules/editor/fold/FoldHierarchyExecution.java 
|  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/editor.fold/src/org/netbeans/modules/editor/fold/FoldHierarchyExecution.java
 
b/editor.fold/src/org/netbeans/modules/editor/fold/FoldHierarchyExecution.java
--- 
a/editor.fold/src/org/netbeans/modules/editor/fold/FoldHierarchyExecution.java
+++ 
b/editor.fold/src/org/netbeans/modules/editor/fold/FoldHierarchyExecution.java
@@ -1127,7 +1127,7 @@
                 weakPrefL = 
WeakListeners.create(PreferenceChangeListener.class, new 
PreferenceChangeListener() {
                     @Override
                     public void preferenceChange(PreferenceChangeEvent evt) {
-                        if (evt == null || 
evt.getKey().startsWith(FoldUtilitiesImpl.PREF_COLLAPSE_PREFIX)) {
+                        if (evt.getKey() == null || 
evt.getKey().startsWith(FoldUtilitiesImpl.PREF_COLLAPSE_PREFIX)) {
                             if (!initialFoldState.isEmpty()) {
                                 initialFoldState = new HashMap<FoldType, 
Boolean>();
                             }

[hg] main-silver: #228048: guarded against null keys

Svata Dedic 03/29/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 185 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close