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.
Build: NetBeans IDE Dev (Build 2012-07-17_09-03-28 ) VM: OpenJDK 64-Bit Server VM, 22.0-b10, OpenJDK Runtime Environment, 1.7.0_03-b147 OS: Linux User Comments: rozwell: scanning projects rozwell: scanning projects rozwell: scanning projects rozwell: scanning projects rozwell: scanning projects rozwell: scanning projects Stacktrace: java.lang.NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.getGlobalObject(ModelUtils.java:146) at org.netbeans.modules.javascript2.editor.model.impl.JsObjectImpl.resolveTypes(JsObjectImpl.java:326) at org.netbeans.modules.javascript2.editor.model.impl.JsFunctionImpl.resolveTypes(JsFunctionImpl.java:186) at org.netbeans.modules.javascript2.editor.model.Model.resolveLocalTypes(Model.java:121) at org.netbeans.modules.javascript2.editor.model.Model.getModelVisitor(Model.java:89) at org.netbeans.modules.javascript2.editor.model.Model.getGlobalObject(Model.java:97)
Created attachment 122114 [details] stacktrace
Created attachment 122125 [details] stacktrace I just restarted IDE
Created attachment 122135 [details] stacktrace starting IDE with a fresh new userdir for the first time
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=190822
a lot of automatic tests fails with this exception (no any javascript files in project). WARNING [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater] java.lang.NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.getGlobalObject(ModelUtils.java:146) at org.netbeans.modules.javascript2.editor.model.impl.JsObjectImpl.resolveTypes(JsObjectImpl.java:326) at org.netbeans.modules.javascript2.editor.model.impl.JsFunctionImpl.resolveTypes(JsFunctionImpl.java:186) at org.netbeans.modules.javascript2.editor.model.Model.resolveLocalTypes(Model.java:121) at org.netbeans.modules.javascript2.editor.model.Model.getModelVisitor(Model.java:89) at org.netbeans.modules.javascript2.editor.model.Model.getGlobalObject(Model.java:97) at org.netbeans.modules.javascript2.editor.index.JsIndexer.index(JsIndexer.java:92) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$3.run(Indexable.java:216) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:259) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:214) [catch] at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$3.run(RepositoryUpdater.java:2803) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:583)
Created attachment 122140 [details] stacktrace
Created attachment 122141 [details] stacktrace
This bug could become blocker for OSS IDE development process, as it breaks our automatic test and, as result, integration with the rest of Studio bits. Leaving it P2 for now, but I will have to make it P1 if it won't be fixed by the middle of the next week.
Created attachment 122148 [details] stacktrace Switched to LiveHTML tab.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=190822
Created attachment 122152 [details] stacktrace - just freshly opened IDE
It looks like a regression from Monday.
I pushed a "hotfix" for this issue: http://hg.netbeans.org/web-main/rev/e153d60626a2 The root of problem is that some assignments are added to a virtual function that wrap whole js source. This wrap function doesn't have a parent and it can not have an assignment. Unfortunately the assignments are added to this function for long time, but after fixing issue #227490 (was fixed yesterday) this was uncovered. The proper fix should be fixing the place where the assignments are added to the wrap function. I'm working on this, but it requires a small rewrite of ModelVisitor.
Created attachment 122174 [details] stacktrace
Integrated into 'main-golden', will be available in build *201207190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e153d60626a2 User: Petr Pisl <ppisl@netbeans.org> Log: #215648 - NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.getGlobalObject
Created attachment 122350 [details] stacktrace started IDE (fresh user dir) and created PHP project