This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229552 - NullPointerException at org.netbeans.modules.debugger.jpda.ui.models.ValuePropertyEditor.supportsCustomEditor
Summary: NullPointerException at org.netbeans.modules.debugger.jpda.ui.models.ValuePro...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-09 17:17 UTC by Ralph Ruijs
Modified: 2013-06-12 02:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200543


Attachments
stacktrace (5.83 KB, text/plain)
2013-05-09 17:17 UTC, Ralph Ruijs
Details
stacktrace (5.28 KB, text/plain)
2013-06-03 17:52 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2013-05-09 17:17:03 UTC
Build: NetBeans IDE Dev (Build 20130509-9b89676e0140)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 8

User Comments:
ralphbenjamin: Debugging, pressing continue




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.debugger.jpda.ui.models.ValuePropertyEditor.supportsCustomEditor(ValuePropertyEditor.java:318)
   at org.openide.explorer.propertysheet.RendererFactory.getRenderer(RendererFactory.java:271)
   at org.openide.explorer.propertysheet.RendererPropertyDisplayer.getRenderer(RendererPropertyDisplayer.java:296)
   at org.openide.explorer.propertysheet.RendererPropertyDisplayer.paintComponent(RendererPropertyDisplayer.java:275)
   at javax.swing.JComponent.paint(JComponent.java:1054)
   at javax.swing.JComponent.paintChildren(JComponent.java:887)
Comment 1 Ralph Ruijs 2013-05-09 17:17:05 UTC
Created attachment 134267 [details]
stacktrace
Comment 2 Martin Entlicher 2013-05-14 08:27:39 UTC
Unfortunately, I'm not able to reproduce this. :-(
It looks like the property editor is asked for supportsCustomEditor and isPaintable before the value is set. Therefore the delegating property editor is not set. But I'm not able to get it into such state...
Can you provide some steps to reproduce? E.g. using a sample project?
Comment 3 Exceptions Reporter 2013-05-16 12:56:01 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200543
Comment 4 Ralph Ruijs 2013-05-16 13:01:24 UTC
(In reply to comment #2)
> Unfortunately, I'm not able to reproduce this. :-(
> It looks like the property editor is asked for supportsCustomEditor and
> isPaintable before the value is set. Therefore the delegating property editor
> is not set. But I'm not able to get it into such state...
> Can you provide some steps to reproduce? E.g. using a sample project?

I had some breakpoints in a JavaSource Task, like in refactoring.java\test\unit\src\org\netbeans\modules\refactoring\java\test\PullUpTest.java line 1038. The exception occurs when I open the Variables window, or expand a node in this window.


Did you try to reproduce on windows? Looking at the exception reports, it could be platform specific.
Comment 5 Exceptions Reporter 2013-06-03 17:52:26 UTC
Created attachment 135287 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
Not able to watch the variables in debug mode
Comment 6 Martin Entlicher 2013-06-10 14:14:14 UTC
I did not manage to reproduce it, from the code it looks like the VariablePropertyEditor should contain null value when this occurs. Therefore just a check for null should solve this correctly.
Fixed by changeset:   256045:1f19e268ac92
http://hg.netbeans.org/core-main/rev/1f19e268ac92
Comment 7 Quality Engineering 2013-06-12 02:02:45 UTC
Integrated into 'main-golden', will be available in build *201306112301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1f19e268ac92
User: mentlicher@netbeans.org
Log: #229552: Check for null delegate.