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 234210 - NullPointerException at org.netbeans.modules.findbugs.options.FindBugsPanel$3.valueChanged
Summary: NullPointerException at org.netbeans.modules.findbugs.options.FindBugsPanel$3...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: FindBugs (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Cyhelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-09 22:17 UTC by MackSix
Modified: 2013-08-14 14:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 202944


Attachments
stacktrace (11.70 KB, text/plain)
2013-08-09 22:17 UTC, MackSix
Details
Normal FindBugs Configuration Dialog Box (39.13 KB, image/png)
2013-08-09 22:22 UTC, MackSix
Details
Step #4--Configuration Dialog is Bad (21.52 KB, image/png)
2013-08-09 22:24 UTC, MackSix
Details
Step #4--Expanded Configuration Dialog with List Cut Off on the Left (39.21 KB, image/png)
2013-08-09 22:25 UTC, MackSix
Details
stacktrace (11.70 KB, text/plain)
2013-08-12 12:14 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-08-09 22:17:30 UTC
Build: NetBeans IDE Dev (Build 201308090746)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b55, Java(TM) SE Runtime Environment, 1.7.0_40-ea-b36
OS: Windows 7

User Comments:
MackSix: 1. Installed FindBugs.
2. Configured to use single inspection. (Class implements Cloneable but does not define clone() method)
3. Clicked OK
4. Opened up Configuration again and the list dialog box was collapsed smaller and the list was cut off on the left side.
5. expanded dialog box out and moved partition over until full list showed in dialog box.
6. Click on Bad Practice node to close it.
This NPE happned.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.findbugs.options.FindBugsPanel$3.valueChanged(FindBugsPanel.java:195)
   at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:634)
   at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1092)
   at javax.swing.tree.DefaultTreeSelectionModel.removeSelectionPaths(DefaultTreeSelectionModel.java:501)
   at javax.swing.JTree.removeDescendantSelectedPaths(JTree.java:3710)
   at javax.swing.JTree.setExpandedState(JTree.java:3593)
Comment 1 MackSix 2013-08-09 22:17:32 UTC
Created attachment 138517 [details]
stacktrace
Comment 2 MackSix 2013-08-09 22:22:22 UTC
Created attachment 138518 [details]
Normal FindBugs Configuration Dialog Box
Comment 3 MackSix 2013-08-09 22:24:05 UTC
Created attachment 138519 [details]
Step #4--Configuration Dialog is Bad
Comment 4 MackSix 2013-08-09 22:25:39 UTC
Created attachment 138520 [details]
Step #4--Expanded Configuration Dialog with List Cut Off on the Left
Comment 5 MackSix 2013-08-09 22:29:06 UTC
Also, the single inspection fails to find problem in file, but running the full FindBugs configuration on the file is successful in finding it.
Comment 6 Petr Cyhelsky 2013-08-12 12:14:18 UTC
Created attachment 138582 [details]
stacktrace

reproduced
Comment 7 Petr Cyhelsky 2013-08-12 13:53:36 UTC
fixed in http://hg.netbeans.org/jet-main/rev/b62057964e09
Comment 8 Quality Engineering 2013-08-14 14:40:36 UTC
Integrated into 'main-silver', will be available in build *201308141142* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b62057964e09
User: Petr Cyhelsky <cyhelsky@netbeans.org>
Log: #234210 dealing with collapse node event in JTree