[hg] main-silver: #229552: Check for null delegate.

  • From:
  • To:
  • Subject: [hg] main-silver: #229552: Check for null delegate.
  • Date: Mon, 10 Jun 2013 14:35:52 -0700

changeset 1f19e268ac92 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/1f19e268ac92
description:
        #229552: Check for null delegate.

diffstat:

 
debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/ValuePropertyEditor.java
 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/ValuePropertyEditor.java
 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/ValuePropertyEditor.java
--- 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/ValuePropertyEditor.java
+++ 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/ValuePropertyEditor.java
@@ -265,7 +265,7 @@
     @Override
     public boolean isPaintable() {
         
//System.out.println("ValuePropertyEditor.isPaintable("+delegatePropertyEditor+")");
-        return delegatePropertyEditor.isPaintable();
+        return delegatePropertyEditor != null && 
delegatePropertyEditor.isPaintable();
     }
 
     @Override
@@ -304,7 +304,7 @@
     public boolean supportsCustomEditor() {
         logger.log(Level.FINE, 
"ValuePropertyEditor.supportsCustomEditor({0})",
                    delegatePropertyEditor);
-        return delegatePropertyEditor.supportsCustomEditor();
+        return delegatePropertyEditor != null && 
delegatePropertyEditor.supportsCustomEditor();
     }
 
     @Override

[hg] main-silver: #229552: Check for null delegate.

mentlicher 06/10/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close