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 82294

Summary: NPE after Enter when there is no text in editor
Product: javaee Reporter: Jindrich Sedek <jsedek>
Component: JSPAssignee: Tomasz Slota <tslota>
Status: VERIFIED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: stack trace

Description Jindrich Sedek 2006-08-09 15:46:42 UTC
Create new web project
in index.jsp press Ctrl+A, Del to delete all the content of editor window
press Enter
java.lang.NullPointerException
	at
org.netbeans.modules.web.core.syntax.JspFormatter.isUnformattableToken(JspFormatter.java:134)
the same for XML, HTML editor
Comment 1 Jindrich Sedek 2006-08-09 15:47:41 UTC
Created attachment 32715 [details]
stack trace
Comment 2 Tomasz Slota 2006-08-10 08:58:18 UTC
fixed.

Checking in TagBasedFormatter.java;
/cvs/xml/tageditorsupport/src/org/netbeans/modules/editor/structure/formatting/Attic/
TagBasedFormatter.java,v  <--  TagBasedFormatter.java
new revision: 1.1.2.12; previous revision: 1.1.2.11
Comment 3 Jindrich Sedek 2006-08-11 08:49:07 UTC
Verified NetBeans5.5Dev 200608110000