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 149987 - Completion: NPE at .JFXTokenId.isComment pressing enter at end of file
Summary: Completion: NPE at .JFXTokenId.isComment pressing enter at end of file
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 20:34 UTC by Lark Fitzgerald
Modified: 2008-10-15 16:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (2.40 KB, text/plain)
2008-10-13 20:35 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-10-13 20:34:32 UTC
Tested using FX Cont trunk build 349 with SDK:
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 708, Build-ID: 2008-10-13_03-09-52 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 200810060201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

1. create .fx file and paste following
class Test {
}

2. Go to end of file and press enter. Get NPE

java.lang.NullPointerException
	at org.netbeans.api.javafx.lexer.JFXTokenId.isComment(JFXTokenId.java:498)
	at org.netbeans.modules.javafx.editor.JavaFXEditorKit$JavaInsertBreakAction.beforeBreak

(JavaFXEditorKit.java:410)


full source attached.
Comment 1 Lark Fitzgerald 2008-10-13 20:35:57 UTC
Created attachment 71686 [details]
exception
Comment 2 Rastislav Komara 2008-10-14 08:15:26 UTC
Fixed.
Comment 3 Lark Fitzgerald 2008-10-15 16:35:20 UTC
Tested using FX Cont trunk build 370 with SDK:
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 742, Build-ID: 2008-10-14_19-32-24 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 200810130704)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)