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 220436 - NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelElementFactory.create
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.Mo...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 15:23 UTC by Alexander Pepin
Modified: 2012-10-23 12:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193778


Attachments
stacktrace (4.82 KB, text/plain)
2012-10-19 15:23 UTC, Alexander Pepin
Details
stacktrace (4.82 KB, text/plain)
2012-10-22 07:59 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2012-10-19 15:23:55 UTC
Build: NetBeans IDE Dev (Build 201210180002)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Linux

User Comments:
apepin: Steps to reproduce:
- cretae C/C++ project with existing sources
Result: NPE occurs




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.model.impl.ModelElementFactory.create(ModelElementFactory.java:164)
   at org.netbeans.modules.javascript2.editor.model.impl.ModelVisitor.enter(ModelVisitor.java:589)
   at com.oracle.nashorn.ir.ObjectNode.accept(ObjectNode.java:82)
   at com.oracle.nashorn.ir.VarNode.accept(VarNode.java:163)
   at org.netbeans.modules.javascript2.editor.model.impl.ModelVisitor.enter(ModelVisitor.java:484)
   at com.oracle.nashorn.ir.FunctionNode.accept(FunctionNode.java:308)
Comment 1 Alexander Pepin 2012-10-19 15:23:57 UTC
Created attachment 126201 [details]
stacktrace
Comment 2 Vladimir Riha 2012-10-22 07:59:21 UTC
Created attachment 126293 [details]
stacktrace

creating a new HTML project with Twitter Bootstrap template
Comment 3 Petr Pisl 2012-10-22 10:00:01 UTC
Fixed in web-main
http://hg.netbeans.org/web-main/rev/e45dcd060161
Comment 4 Quality Engineering 2012-10-23 12:08:22 UTC
Integrated into 'main-golden', will be available in build *201210231040* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e45dcd060161
User: Petr Pisl <ppisl@netbeans.org>
Log: #220436 - NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelElementFactory.create