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 151946 - [65cat] NullPointerException at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel.editGroupButtonActionPerformed
Summary: [65cat] NullPointerException at org.netbeans.modules.spring.beans.ui.customiz...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: nairsujit
URL: http://statistics.netbeans.org/except...
Keywords:
: 150569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-31 07:59 UTC by rajivderas
Modified: 2009-02-19 23:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 134566


Attachments
stacktrace (2.43 KB, text/plain)
2008-10-31 07:59 UTC, rajivderas
Details
stacktrace (2.43 KB, text/plain)
2008-10-31 08:10 UTC, rajivderas
Details
stacktrace (2.43 KB, text/plain)
2008-11-07 15:18 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-10-31 07:59:40 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel.editGroupButtonActionPerformed(SpringCustomizerPanel.java:494)
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel.access$800(SpringCustomizerPanel.java:71)
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel$.actionPerformed(SpringCustomizerPanel.java:342)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
Comment 1 rajivderas 2008-10-31 07:59:44 UTC
Created attachment 72969 [details]
stacktrace
Comment 2 rajivderas 2008-10-31 08:04:04 UTC
goto web project spring framework properties
2) then goto configuration file groups>add group
3) Don't type a name keep group name blank and press ok
4) now de-select the unnamed group and click edit group
Comment 3 rajivderas 2008-10-31 08:09:52 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel.editGroupButtonActionPerformed(SpringCustomizerPanel.java:494)
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel.access$800(SpringCustomizerPanel.java:71)
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel$.actionPerformed(SpringCustomizerPanel.java:342)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
Comment 4 rajivderas 2008-10-31 08:10:03 UTC
Created attachment 72970 [details]
stacktrace
Comment 5 rajivderas 2008-11-07 15:18:08 UTC
Build: NetBeans IDE Dev (Build 200811070201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel.editGroupButtonActionPerformed(SpringCustomizerPanel.java:494)
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel.access$800(SpringCustomizerPanel.java:71)
        at org.netbeans.modules.spring.beans.ui.customizer.SpringCustomizerPanel$.actionPerformed(SpringCustomizerPanel.java:342)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
Comment 6 rajivderas 2008-11-07 15:18:17 UTC
Created attachment 73478 [details]
stacktrace
Comment 7 nairsujit 2008-11-26 03:42:25 UTC
*** Issue 150569 has been marked as a duplicate of this issue. ***
Comment 8 nairsujit 2008-12-04 06:13:38 UTC
Rajiv,

When you say de-select the newly created 'unnamed' group, what do you mean by that? select another group?
Secondly, whenever no group is selected (in the case you open the window for first time), the 'Edit Group' button stays
disabled. In your setup, does the button remain enabled even if no groups are selected? Think, it may be getting enabled
for fraction of seconds before getting disabled, in your setup, is it so?
Please clarify on this.

Thanks,
Sujit
Comment 9 rajivderas 2008-12-04 06:31:31 UTC
>>>When you say de-select the newly created 'unnamed' group, what do you mean by that? select another group?
1)Not to select another group you just press the CTRL key and select the 'unnamed' group which will de-select the newly 
created 'unnamed' group

>>>Secondly, whenever no group is selected (in the case you open the window for first time), the 'Edit Group' button 
stays
disabled. In your setup, does the button remain enabled even if no groups are selected? 
2)yes , whenever no group is selected (in the case you open the window for first time), the 'Edit Group' button stays
disabled and even you had a group n the case you open the window for first time the button is disabled and it is valid.

hope this helps Sujit :-)

Comment 10 nairsujit 2008-12-15 09:17:13 UTC
Thanks Rajiv for the additional inputs. The issue has been resolved. 

http://hg.netbeans.org/main/rev/7e4df3b43d4b
Comment 11 Quality Engineering 2008-12-16 05:56:33 UTC
Integrated into 'main-golden', will be available in build *200812160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7e4df3b43d4b
User: Sujit Nair <nairsujit@netbeans.org>
Log: IZ#151946 : Edit Group button remaining enabled when no group is selected and on click leading to NPE.