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 - NullPointerException at org.netbeans.modules.form.CodeCustomizer.getSourcePositions
Summary: NullPointerException at org.netbeans.modules.form.CodeCustomizer.getSourcePos...
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 01:53 UTC by younes
Modified: 2008-06-11 14:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 9138


Attachments
stacktrace (2.75 KB, text/plain)
2008-02-26 01:53 UTC, younes
Details

Note You need to log in before you can comment on or make changes to this bug.
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