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 128389

Summary: NullPointerException at org.netbeans.modules.form.CodeCustomizer.getSourcePositions
Product: guibuilder Reporter: younes <younes>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=9138
Issue Type: DEFECT Exception Reporter: 9138
Attachments: stacktrace

Description younes 2008-02-26 01:53:50 UTC
Build: NetBeans IDE 6.0.1 (Build 200801291616)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Windows XP, 5.1, x86

User Comments:
Comment 1 younes 2008-02-26 01:53:53 UTC
Created attachment 57235 [details]
stacktrace
Comment 2 Jana Maleckova 2008-02-26 09:31:06 UTC
StackTrace:
===========
java.lang.NullPointerException
        at org.netbeans.modules.form.CodeCustomizer.getSourcePositions(CodeCustomizer.java:142)
        at org.netbeans.modules.form.CodeCustomizer.selectComponent(CodeCustomizer.java:127)
        at org.netbeans.modules.form.CodeCustomizer.show(CodeCustomizer.java:87)
        at org.netbeans.modules.form.actions.CustomCodeAction.performAction(CustomCodeAction.java:55)
        at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
        at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:77)
        at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:577)
Comment 3 Jan Stola 2008-02-26 13:37:13 UTC
It seems that your .java file got corrupted. The GUI builder is not able to find initComponents section. Does 
your .java file contains the following comments (at the beginning and at the end of the initComponents method)?

//GEN-BEGIN:initComponents
//GEN-END:initComponents
Comment 4 Jan Stola 2008-03-05 14:50:25 UTC
No additional information provided => closing as non-reproducible.
Comment 5 Exceptions Reporter 2008-06-11 14:12:07 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=9138