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 30866 - exception when adding event in forms editor
Summary: exception when adding event in forms editor
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 29742 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-08 00:15 UTC by Richard Welty
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log file as specified by the exception message (207.24 KB, text/plain)
2003-02-08 00:17 UTC, Richard Welty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Welty 2003-02-08 00:15:37 UTC
when adding a JCheckbox to a form, i attemped right mouse Event->Action->ActionPerformed, and got an exception with a request
to supplie ide.log
Comment 1 Richard Welty 2003-02-08 00:17:14 UTC
Created attachment 8853 [details]
ide.log file as specified by the exception message
Comment 2 Tomas Pavek 2003-02-10 16:23:04 UTC
Hm, I cannot reproduce it. Does it happen always? Also with completely
new form? Any more details you can give? Thanks
Comment 3 Richard Welty 2003-02-10 16:34:06 UTC
it happens with great rarity (once every couple of weeks, no more.)
Comment 4 Tomas Pavek 2003-02-10 16:38:33 UTC
Okay. Always with this sequence of actions (adding event), or whatever
operation in form editor?
Comment 5 Richard Welty 2003-02-10 17:19:47 UTC
as i recall, only when adding an event
Comment 6 Tomas Pavek 2003-02-10 17:38:36 UTC
Editor guys, any idea whould could cause this exception?

java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at org.netbeans.editor.ext.FormatWriter.addToBuffer(FormatWriter.java:813)
at org.netbeans.editor.ext.FormatWriter.<init>(FormatWriter.java:321)
at
org.netbeans.editor.ext.ExtFormatter.createWriter(ExtFormatter.java:332)
at
org.netbeans.modules.editor.FormatterIndentEngine.createWriter(FormatterIndentEngine.java:81)
at
org.netbeans.modules.form.JavaCodeGenerator.generateEventHandler(JavaCodeGenerator.java:1565)
...
Comment 7 Martin Roskanin 2003-02-11 08:32:13 UTC
*** Issue 29742 has been marked as a duplicate of this issue. ***
Comment 8 Martin Roskanin 2003-02-28 15:45:01 UTC
At this time only P1s and P2s are allowed to be integrated into newly
created branch "release35". 
http://www.netbeans.org/servlets/ReadMsg?msgId=475395&listName=nbdev
Changing target milestone to 4.0

Comment 9 Miloslav Metelka 2004-05-07 15:31:27 UTC
I cannot reproduce the problem with NB 3.6. Does it still happen?

I've looked into the code as well but I can't find out any possible
threading or other issue that could cause this. I think we cannot
proceed without reproducible case here.
Comment 10 Miloslav Metelka 2004-05-10 15:28:56 UTC
Closing as worksforme for now. Please reopen if the problem reappears.