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 209848 - NullPointerException at org.netbeans.modules.findbugs.options.FindBugsOptionsPanelController.getComponent
Summary: NullPointerException at org.netbeans.modules.findbugs.options.FindBugsOptions...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: FindBugs (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 12:04 UTC by stefan79
Modified: 2012-04-03 08:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186095


Attachments
stacktrace (3.51 KB, text/plain)
2012-03-21 12:04 UTC, stefan79
Details
stacktrace (3.51 KB, text/plain)
2012-03-22 12:34 UTC, Marian Mirilovic
Details
stacktrace (3.60 KB, text/plain)
2012-03-27 12:13 UTC, asenk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2012-03-21 12:04:46 UTC
Build: NetBeans IDE Dev (Build 201203200400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
stefan79: NPE occurs also after restarting NetBeans.

stefan79: Installed FindBugs and after clicked at Options - >Miscellaneos -> FindBugs -> Then the NPE occured.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.findbugs.options.FindBugsOptionsPanelController.getComponent(FindBugsOptionsPanelController.java:124)
   at org.netbeans.modules.findbugs.options.FindBugsOptionsPanelController.getComponent(FindBugsOptionsPanelController.java:53)
   at org.netbeans.modules.options.advanced.Model$DelegatingController.getComponent(Model.java:327)
   at org.netbeans.modules.options.advanced.Model.getPanel(Model.java:161)
   at org.netbeans.modules.options.advanced.AdvancedPanel.handleTabSwitched(AdvancedPanel.java:198)
   at org.netbeans.modules.options.advanced.AdvancedPanel.access$100(AdvancedPanel.java:75)
Comment 1 stefan79 2012-03-21 12:04:55 UTC
Created attachment 116998 [details]
stacktrace
Comment 2 Marian Mirilovic 2012-03-22 12:32:43 UTC
easy to reproduce ...
Comment 3 Marian Mirilovic 2012-03-22 12:34:14 UTC
Created attachment 117078 [details]
stacktrace

Switching to Findbugs panel in Options
Comment 4 Jan Lahoda 2012-03-22 19:59:28 UTC
Oops, I did not realize the panel(s) are registered even under Misc category - the main panel is in Editor/Hints/FindBugs (we may need to rename "Hints" to something like "Warnings" and the "Language" combo to something like "Technology:"). These registrations are removed by:
http://hg.netbeans.org/jet-main/rev/f41605a7f1dd
and this increments the version of the FindBugs Integration module so that its upgrade should be shown to the users:
http://hg.netbeans.org/jet-main/rev/07d1705123f0

Please ignore the Misc/FindBugs panel(s) for now.
Comment 5 Quality Engineering 2012-03-24 11:00:21 UTC
Integrated into 'main-golden', will be available in build *201203240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f41605a7f1dd
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #209848: disabling unwanted option panel registrations.
Comment 6 Quality Engineering 2012-03-25 09:45:03 UTC
Integrated into 'main-golden', will be available in build *201203250401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f41605a7f1dd
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #209848: disabling unwanted option panel registrations.
Comment 7 Jiri Prox 2012-03-27 08:55:09 UTC
Sorry I have to reopen this bug. I get this exception from today build (from jet-main repository)

Product Version: NetBeans IDE Dev (Build 20120327-32dda4ed3d72)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 8 Jan Lahoda 2012-03-27 11:28:29 UTC
You mean after installing FindBugs from the AUC, right? I do not see the FindBugs panel in Tools/Options/Misc/ in current build from jet-main without installing FB from the AUC. The problem is that the AUC build is unstable due to some failing tests, so the default variant of the development AUC is not updated yet (it still contains version 1.2 of the FB module, while the bug has been fixed in version 1.3). Please either wait until the AUC is updated with FB version >= 1.3, or use this variant of the AUC as a temporary workaround:
http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz
(contains version 1.4 of the FB module)
Comment 9 Jiri Prox 2012-03-27 11:51:55 UTC
yes, you're right I've got FB from AUC
Comment 10 asenk 2012-03-27 12:13:41 UTC
Created attachment 117320 [details]
stacktrace

1. Install FindBugs plugin
2.Options -> Miscellaneous
3.FindBugs tab