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 150585 - NullPointerException at java.io.File.<init>
Summary: NullPointerException at java.io.File.<init>
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 21:16 UTC by dkaris
Modified: 2009-02-19 23:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 91841


Attachments
stacktrace (514 bytes, text/plain)
2008-10-17 21:16 UTC, dkaris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dkaris 2008-10-17 21:16:23 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments:
dkaris: On the "Ruby Platforms Dialog", I clicked on "Install Fast Debugger" into my Ruby 1.8.6 native ruby installation

GUEST: i was trying to install a fast debugger to the ruby platfrom that i manually added....

dkaris: On the "Ruby Platforms Dialog", I clicked on "Install Fast Debugger" into my Ruby 1.8.6 native ruby installation



Stacktrace: 
java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at org.netbeans.modules.ruby.platform.gems.GemRunner.runGemTool(GemRunner.java:332)
        at org.netbeans.modules.ruby.platform.gems.GemRunner.access$100(GemRunner.java:75)
        at org.netbeans.modules.ruby.platform.gems.GemRunner$2.run(GemRunner.java:510)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 dkaris 2008-10-17 21:16:36 UTC
Created attachment 72157 [details]
stacktrace
Comment 2 dkaris 2008-10-17 21:56:40 UTC
My ruby\bin directory contained a "gem.rb" but did not contain a "gem" or "gem.bat" file.  I created "gem" as a copy of
"gem.rb" and "gem.bat" as 

@ECHO OFF
@"ruby.exe" "%~dpn0" %*

This resolved the problem.

Note also, that before this change, the "Ruby Platforms" dialog showed my Gem Tool as "null (1.2.0)"; after this change
it showed "c:\ruby\bin\gem (1.2.0)"
Comment 3 Martin Krauskopf 2008-10-22 07:58:39 UTC
This might get fixed in 6.5 RC1 (http://www.netbeans.org/community/releases/65/). But I've committed several robustness
fixes in Changeset #25ee45dfeb59). Thus setting TM to 7.0.

Commit log:
Introducing RubyPlatformValidator, relaxing RubyPlatform, more robustness, less copy-paste.