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 188875 - NullPointerException at org.netbeans.modules.ruby.elements.AstElement.create
Summary: NullPointerException at org.netbeans.modules.ruby.elements.AstElement.create
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 17:24 UTC by michel_demazure
Modified: 2011-01-28 20:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 153105


Attachments
stacktrace (1.64 KB, text/plain)
2010-07-22 17:24 UTC, michel_demazure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michel_demazure 2010-07-22 17:24:33 UTC
Build: NetBeans IDE Dev (Build 201007200001)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP

User Comments:
michel_demazure: using Find Usages

GUEST: right-click, "usages" to get here.  not sure what the context is but this works fine normally. going to restart

GUEST: Was in the ruby debugger for some time. Not sure when this kicked in.

GUEST: ??? [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.refactoring.spi.impl.ParametersPanel$10
java.lang.NullPointerException
	at org.netbeans.modules.ruby.elements.AstElement.create(AstElement.java:138)
	at org.netbeans.modules.refactoring.ruby.RubyElementCtx.<init>(RubyElementCtx.java:163)
	at org.netbeans.modules.refactoring.ruby.ui.WhereUsedPanel$1.run(WhereUsedPanel.java:143)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
Caused: org.netbeans.modules.parsing.spi.ParseException
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:191)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:99)
	at org.netbeans.modules.refactoring.ruby.ui.WhereUsedPanel.initialize(WhereUsedPan

GUEST: right-click method name and selected "find usages"




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.ruby.elements.AstElement.create(AstElement.java:145)
   at org.netbeans.modules.refactoring.ruby.RubyElementCtx.<init>(RubyElementCtx.java:168)
   at org.netbeans.modules.refactoring.ruby.ui.WhereUsedPanel$1.run(WhereUsedPanel.java:146)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:154)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:138)
   at org.netbeans.modules.parsing.impl.TaskProcessor$1.call(TaskProcessor.java:200)
Comment 1 michel_demazure 2010-07-22 17:24:39 UTC
Created attachment 100989 [details]
stacktrace
Comment 2 blackratprime 2010-12-02 15:18:25 UTC
Same problem in a ruby program. Again after using Find Usages a number of times previously with no error. Was not using the Ruby Debugger.