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 229207 - NullPointerException at org.netbeans.modules.java.hints.spiimpl.options.HintsPanelLogic$WritableSettings.isEnabled
Summary: NullPointerException at org.netbeans.modules.java.hints.spiimpl.options.Hints...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 229451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-30 11:55 UTC by lopura
Modified: 2013-05-09 08:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200325


Attachments
stacktrace (4.43 KB, text/plain)
2013-04-30 11:55 UTC, lopura
Details
stacktrace (5.15 KB, text/plain)
2013-05-07 10:43 UTC, chintan4fun
Details
stacktrace (5.15 KB, text/plain)
2013-05-07 10:46 UTC, chintan4fun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lopura 2013-04-30 11:55:49 UTC
Build: NetBeans IDE Dev (Build 201304292301)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
Lopura: same action as a minute before (configure the caught exception is too broad hint from the editor), but now the exception has changed, it is an NPE
This exception occurred while doing the same thing that caused 669769




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.hints.spiimpl.options.HintsPanelLogic$WritableSettings.isEnabled(HintsPanelLogic.java:708)
   at org.netbeans.modules.java.hints.spiimpl.options.HintsPanelLogic.isEnabled(HintsPanelLogic.java:561)
   at org.netbeans.modules.java.hints.spiimpl.options.HintsPanelLogic.isSelected(HintsPanelLogic.java:283)
   at org.netbeans.modules.java.hints.spiimpl.options.HintsPanel$CheckBoxRenderer.getTreeCellRendererComponent(HintsPanel.java:939)
   at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1534)
   at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1223)
Comment 1 lopura 2013-04-30 11:55:51 UTC
Created attachment 133974 [details]
stacktrace
Comment 2 athompson 2013-05-06 15:04:34 UTC
This really should be a P2 or P1. It prevents you from opening the Options dialog if it was last left on the Hints page.

This is possibly related to the new code from issue #181726.
Comment 3 Jiri Prox 2013-05-06 15:23:50 UTC
Reproducible

this starts occurring after setting project specific hints
Comment 4 athompson 2013-05-06 18:08:16 UTC
It happens here if I go to the global hints as well (I don't have any Ant projects).
Comment 5 Exceptions Reporter 2013-05-07 10:31:45 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200325
Comment 6 chintan4fun 2013-05-07 10:43:46 UTC
Created attachment 134174 [details]
stacktrace

Selected Options-->Hints 2nd time and got the error.
Comment 7 chintan4fun 2013-05-07 10:46:46 UTC
Created attachment 134175 [details]
stacktrace

Clicking On Options Gives The Error.
Comment 8 Exceptions Reporter 2013-05-08 06:46:47 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200325
Comment 9 Quality Engineering 2013-05-09 02:37:04 UTC
Integrated into 'main-golden', will be available in build *201305082300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f5091d693de0
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #229207: must use the normalized "originalSettings", not whatever caller passed to setOverlayPreferences.
Comment 10 Jan Lahoda 2013-05-09 08:47:23 UTC
*** Bug 229451 has been marked as a duplicate of this bug. ***