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 181719 - NullPointerException at org.netbeans.modules.csl.editor.overridden.ComputeAnnotations$1.run
Summary: NullPointerException at org.netbeans.modules.csl.editor.overridden.ComputeAnn...
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-09 12:34 UTC by Petr Chytil
Modified: 2010-03-12 03:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166067


Attachments
stacktrace (1.26 KB, text/plain)
2010-03-09 12:34 UTC, Petr Chytil
Details
stacktrace (1.26 KB, text/plain)
2010-03-10 05:45 UTC, Erno Mononen
Details
stacktrace (1.26 KB, text/plain)
2010-03-12 03:09 UTC, sreimers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Chytil 2010-03-09 12:34:50 UTC
Build: NetBeans IDE Dev (Build 201003081350)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125
OS: Mac OS X

User Comments:
pchytil: I have just created new index.rhtml file in Views->layout (RailsApplication project)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.csl.editor.overridden.ComputeAnnotations$1.run(ComputeAnnotations.java:145)
   at org.netbeans.modules.csl.editor.overridden.ComputeAnnotations$1.run(ComputeAnnotations.java:170)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:151)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:135)
   at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
   at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:103)
Comment 1 Petr Chytil 2010-03-09 12:34:54 UTC
Created attachment 94938 [details]
stacktrace
Comment 2 Erno Mononen 2010-03-10 05:45:54 UTC
Created attachment 94972 [details]
stacktrace

Happens in rhtml files now that Ruby has an implementation of OverridingMethods -- Ruby has StructureItems that return a null ElementHandle.
Comment 3 Erno Mononen 2010-03-10 05:54:53 UTC
I guess the problem is in Ruby as StructureItem#getElementHandle is not supposed to return null. I'll try to change RhtmlStructureItem (which is the problem here) to return something reasonable.
Comment 4 Erno Mononen 2010-03-10 06:37:35 UTC
Fixed in 155a1dde266e.
Comment 5 sreimers 2010-03-12 03:09:17 UTC
Created attachment 95075 [details]
stacktrace