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 - NPE after Enter when there is no text in editor
Summary: NPE after Enter when there is no text in editor
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2006-08-09 15:46 UTC by Jindrich Sedek
Modified: 2006-08-11 08:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (2.41 KB, text/plain)
2006-08-09 15:47 UTC, Jindrich Sedek
Details

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