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 242176 - NullPointerException at org.netbeans.modules.options.OptionsPanel$CategoryButton.mouseEntered
Summary: NullPointerException at org.netbeans.modules.options.OptionsPanel$CategoryBut...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 05:28 UTC by Exceptions Reporter
Modified: 2014-07-19 10:17 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207844


Attachments
stacktrace (2.42 KB, text/plain)
2014-02-21 05:28 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-02-21 05:28:51 UTC
This bug was originally marked as duplicate of bug 232448, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Windows 7

User Comments:
GUEST: Happened after I choose different Fonts & Colors profile

athompson: in Options, set web browser to chrome and hit the Apply button

Selpi: I tried to change new settings like 'Same background color for files from same project' at Options->Miscellaneous->Windows and noticed that switching flags on this options  doesn't affect 'Ok' and 'Apply' buttons. After several seconds I got this exception.

GUEST: changed web browser from ff to default system browser

ophers: Opened Options-> General, selected "No Proxy", clicked "Test connection" and then Apply.

MackSix: Still valid in 7.4 Beta (Build 201307092200)

deep_pl: On import settings

GUEST: I was try import settings from my previous installation (NetBeans 7.4 beta)

GUEST: Changed color for trailing whitespace.

GUEST: I just clicked the "apply button" after choosing the "Idea" keymap profile.

MackSix: On Tools>>Options>>PHP>>Code Analysis Tab

ssazonov: While I have opened Option Dialog (Tools->Options->Font&Colors->Java) I created new new project, then I pressed 'Restore' btn and I got this error

MackSix: Again, on Tools>>Options>>PHP>>Code Analysis Tab
While viewing tab, the Apply button is activated for no reason. Clicking Apply makes all but the Apply button deactivate. Status says validating tool collection, so it appears to be causing the C/C++ module to be doing something. Buttons flash and this NPE happens.
The Options Dialog is now left in a state where the OK, Apply, Help buttons are deactivated. The Cancel button is activated. Hovering mouse over menu to switch to another item (Keymap, Java, et. al.) causes this NPE.

cyhelsky: options

mrpc: In settings, php/code analysis/code sniffer / search
it found two files, I selected one and OK.
Clicked on Apply to save the settings and the error occured.

mbukovsky: I have opened Tools -> Options -> Miscellaneous -> Windows. In that time, allways, when cursor hover over the icons above (Generaly, Editor, Font & Colors...) this exceptions occure.

Hint: Short time before, I unchecked Transparent floating windows and apply it in Window tab.

MackSix: Clicking on Apply button rapidly on PHP>>Code Analysis tab can cause this to happen. I did not do it before, but discovered I can force it to happen by rapidly clicking the button. Restarting NetBeans usually results in Module deactivation.

athompson: opened options

cyhelsky: clicking on ok button in options/general

headless_monkeyman: Please see the issue about the same features that I submitted less than five minutes before this: 0253 UTC mmm, Looks like the 22nd already across the date line. Of Sept.

Additional steps, must be taken with the previous dozen or so:
Click cancel on the interesting empty Options box.
Open again and this time it functions normally.
Select Misc
Select Windows tab
Note that the Windows scheme is corectly selected as expected
Click the "maximize use of native look nad feel

I feel bad because this is exactly when I stopped paying attention. I work at night and I just wanted to start my coding "day", so I don't know if it blew up in my face, or if I had to click "apply"

Groan and roll eyes and decide to complete this report to match the earlier one, because now the issue has grown into one that stops work for the user, who will be me some day.

While you are at it, please either remove or quiet the "slow" bug reporter. At least I only have to see it once on start, but stop wasting cyclles




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.options.OptionsPanel$CategoryButton.mouseEntered(OptionsPanel.java:1198)
   at java.awt.Component.processMouseEvent(Component.java:6514)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
   at java.awt.Component.processEvent(Component.java:6270)
   at java.awt.Container.processEvent(Container.java:2229)
   at java.awt.Component.dispatchEventImpl(Component.java:4861)
Comment 1 Exceptions Reporter 2014-02-21 05:28:54 UTC
Created attachment 145455 [details]
stacktrace
Comment 2 Alexander Simon 2014-02-21 18:14:39 UTC
20 reports => P2
Comment 3 Theofanis Oikonomou 2014-02-25 11:39:33 UTC
Only one report after 7.4 was released. I am not able to reproduce this in latest builds. I am not really sure how the options get in that state. Too late for 8.0 IMHO. Thank you for reporting
Comment 4 Theofanis Oikonomou 2014-07-11 14:22:50 UTC
Changeset: 356126e7ad5f
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-07-11 16:25
Message:
Comment 5 Quality Engineering 2014-07-19 10:17:00 UTC
Integrated into 'main-silver', will be available in build *201407190718* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/356126e7ad5f
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #242176 - NullPointerException at org.netbeans.modules.options.OptionsPanel$CategoryButton.mouseEntered