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 14274

Summary: NPE after writing ";" and hitting ENTER in [Scripting Console] - "BeanShell"
Product: editor Reporter: Robert Dankanin <rdankanin>
Component: -- Other --Assignee: David Konecny <dkonecny>
Status: CLOSED FIXED    
Severity: blocker CC: pzavadsky
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: thrown NPE

Description Robert Dankanin 2001-08-08 15:52:33 UTC
[Main trunk build #200108080100]

1. start fresh build
2. MW -> "View" -> "Scripting Console"
3. leave the "Scripting Language" on "BeanShell"
4. write there just one character ";" and hit enter

-> attached java.lang.NullPointerException will be thrown

NOTE: from the stack trace, perhaps the bug is in Editor module - feel free to reassign
Comment 1 Robert Dankanin 2001-08-08 15:53:31 UTC
Created attachment 2102 [details]
thrown NPE
Comment 2 Peter Zavadsky 2001-08-13 16:42:13 UTC
Reassigned to editor.
Comment 3 Martin Roskanin 2001-10-10 09:16:28 UTC
You needn't open scripting. Go to the beginning (offset 0) of any java 
document and type ; <enter>
Comment 4 David Konecny 2001-10-10 09:20:26 UTC
Looks seriously. I'm increasing priority and will look at it. Thanx 
Mato.
Comment 5 David Konecny 2001-10-10 15:10:54 UTC
Fixed in file:
libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java;
new revision: 1.28; previous revision: 1.27
Comment 6 Quality Engineering 2003-06-30 18:04:02 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2003-06-30 18:10:20 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.