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 235823 - NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelElementFactory.create
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.Mo...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-09-11 15:24 UTC by mhaungs
Modified: 2013-09-26 11:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 203778


Attachments
stacktrace (5.67 KB, text/plain)
2013-09-11 15:24 UTC, mhaungs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mhaungs 2013-09-11 15:24:07 UTC
Build: NetBeans IDE Dev (Build 201309110001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
mhaungs: I have just installed and started Netbeans IDE Dev 201309110001 and, during startup, it was in the process of "Background scanning of projects" when at 70% complete I got this exception.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.model.impl.ModelElementFactory.create(ModelElementFactory.java:125)
   at org.netbeans.modules.javascript2.editor.model.impl.ModelVisitor.enter(ModelVisitor.java:686)
   at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:291)
   at org.netbeans.modules.javascript2.editor.model.impl.ModelVisitor.enter(ModelVisitor.java:1162)
   at jdk.nashorn.internal.ir.ReferenceNode.accept(ReferenceNode.java:67)
   at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:178)
Comment 1 mhaungs 2013-09-11 15:24:12 UTC
Created attachment 139938 [details]
stacktrace
Comment 2 Petr Pisl 2013-09-11 16:30:32 UTC
Fixed in webmain. http://hg.netbeans.org/web-main/rev/5825137eb072

I was expecting that this can not happen. I don't know how often it can happen and if we will not get another report I would keep it as P3 or Vlado do you want to increase it to P2 to fix it in NetBeans 7.4? The fix is extremely easy.
Comment 3 Vladimir Riha 2013-09-11 18:27:52 UTC
If it's easy and safe I am not against.
Comment 4 Vladimir Riha 2013-09-11 18:31:17 UTC
... But I don't know whether it is not too late as it all should be integrated before 10 pm
Comment 5 Petr Pisl 2013-09-11 19:54:22 UTC
Ok I put it into the releases: http://hg.netbeans.org/releases/rev/0d090ec95a9b
Comment 6 Quality Engineering 2013-09-13 02:03:09 UTC
Integrated into 'main-silver', will be available in build *201309130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5825137eb072
User: Petr Pisl <ppisl@netbeans.org>
Log: #235823 - NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelElementFactory.create
Comment 7 Vladimir Riha 2013-09-26 11:34:18 UTC
Cannot reproduce, verified

Product Version: NetBeans IDE 7.4 RC2 (Build 201309252201)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b13
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)