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 135665 - NPE if code contains sequence type
Summary: NPE if code contains sequence type
Status: VERIFIED DUPLICATE of bug 133076
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 10:01 UTC by Alexandr Scherbatiy
Modified: 2008-06-03 11:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
FX code that contains a sequence type (1.76 KB, text/plain)
2008-05-23 10:02 UTC, Alexandr Scherbatiy
Details
IDE log file (54.21 KB, text/plain)
2008-05-23 10:04 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-05-23 10:01:07 UTC
Steps to reproduce:

- Copy the attached code to the editor
- Type new line
- The NPE pops up:

java.lang.NullPointerException
	at com.sun.tools.javafx.code.JavafxTypes.sequenceType(JavafxTypes.java:78)
	at com.sun.tools.javafx.code.JavafxTypes.sequenceType(JavafxTypes.java:75)
	at com.sun.tools.javafx.comp.JavafxAttr.visitSequenceExplicit(JavafxAttr.java:2968)
	at com.sun.tools.javafx.tree.JFXSequenceExplicit.accept(JFXSequenceExplicit.java:48)
	at com.sun.tools.javafx.tree.JFXExpression.accept(JFXExpression.java:57)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:305)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:329)
	at com.sun.tools.javafx.comp.JavafxAttr.visitInstanciate(JavafxAttr.java:1543)
	at com.sun.tools.javafx.tree.JFXInstanciate.accept(JFXInstanciate.java:62)
	at com.sun.tools.javafx.tree.JFXExpression.accept(JFXExpression.java:57)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:305)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:329)
	at com.sun.tools.javafx.comp.JavafxAttr.finishVar(JavafxAttr.java:955)
	at com.sun.tools.javafx.comp.JavafxMemberEnter$SymbolCompleter.complete(JavafxMemberEnter.java:564)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:400)
	at com.sun.tools.javafx.comp.JavafxAttr.visitVar(JavafxAttr.java:1004)
	at com.sun.tools.javafx.tree.JFXVar.accept(JFXVar.java:70)
	at com.sun.tools.javafx.tree.JFXVar.accept(JFXVar.java:75)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:305)
	at com.sun.tools.javafx.comp.JavafxAttr.visitBlockExpression(JavafxAttr.java:1318)
Comment 1 Alexandr Scherbatiy 2008-05-23 10:02:15 UTC
Created attachment 61812 [details]
FX code that contains a sequence type
Comment 2 Alexandr Scherbatiy 2008-05-23 10:04:17 UTC
Created attachment 61813 [details]
IDE log file
Comment 3 David Strupl 2008-05-23 10:41:20 UTC
Petre, did you mention something about sequences and NPE?
Comment 4 Petr Nejedly 2008-05-26 14:03:40 UTC

*** This issue has been marked as a duplicate of 133076 ***
Comment 5 Alexandr Scherbatiy 2008-06-03 11:54:53 UTC
verified