Project: aptanastudio
Issue APSTUD-4379: NPE in JSPropertyCollector.visit()
Seen in my log file, referencing the attached file: {code} !ENTRY com.aptana.editor.erb 4 0 2012-02-13 21:25:39.507 !MESSAGE (Build 3.0.3.1329178832) [ERROR] An error occurred while indexing _download_info.html.erb !STACK 0 java.lang.NullPointerException com.aptana.editor.js.inferencing.JSPropertyCollector.visit(JSPropertyCollector.java:245) com.aptana.editor.js.inferencing.JSSymbolCollector.addPropertyValue(JSSymbolCollector.java:134) com.aptana.editor.js.inferencing.JSSymbolCollector.visit(JSSymbolCollector.java:262) com.aptana.editor.js.parsing.ast.JSDeclarationNode.accept(JSDeclarationNode.java:37) com.aptana.editor.js.parsing.ast.JSTreeWalker.visitChildren(JSTreeWalker.java:291) com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:267) com.aptana.editor.js.parsing.ast.JSVarNode.accept(JSVarNode.java:53) com.aptana.editor.js.inferencing.JSSymbolCollector.accept(JSSymbolCollector.java:100) com.aptana.editor.js.inferencing.JSSymbolCollector.visit(JSSymbolCollector.java:395) com.aptana.editor.js.parsing.ast.JSParseRootNode.accept(JSParseRootNode.java:56) com.aptana.editor.js.parsing.ast.JSParseRootNode.getGlobals(JSParseRootNode.java:70) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.getGlobals(JSFileIndexingParticipant.java:77) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:175) com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.processHTMLSpecialNode(HTMLFileIndexingParticipant.java:140) com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.processNode(HTMLFileIndexingParticipant.java:166) com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.walkAST(HTMLFileIndexingParticipant.java:198) com.aptana.editor.erb.html.RHTMLFileIndexingParticipant.indexSource(RHTMLFileIndexingParticipant.java:68) com.aptana.editor.erb.html.RHTMLFileIndexingParticipant.index(RHTMLFileIndexingParticipant.java:39) com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83) com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:322) com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:306) com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:265) com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:122) org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513) org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422) com.aptana.editor.js.JSMetadataLoader$1.run(JSMetadataLoader.java:139) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 13