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 191985 - NullPointerException at org.netbeans.modules.ruby.railsprojects.RailsProjectUtil.getRailsVersion
Summary: NullPointerException at org.netbeans.modules.ruby.railsprojects.RailsProjectU...
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 23:20 UTC by sinobra
Modified: 2012-02-19 09:27 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170644


Attachments
stacktrace (2.64 KB, text/plain)
2010-11-15 23:20 UTC, sinobra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sinobra 2010-11-15 23:20:46 UTC
Build: NetBeans IDE 6.9.1 (Build 201011082200)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
GUEST: i want to get project properties

sinobra: Opening a project




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.ruby.railsprojects.RailsProjectUtil.getRailsVersion(RailsProjectUtil.java:165)
   at org.netbeans.modules.ruby.railsprojects.plugins.PluginAction.enable(PluginAction.java:120)
   at org.openide.util.actions.NodeAction$DelegateAction.resultChanged(NodeAction.java:615)
   at org.openide.util.actions.NodeAction$DelegateAction.<init>(NodeAction.java:560)
   at org.openide.util.actions.NodeAction.createContextAwareInstance(NodeAction.java:357)
   at org.openide.util.Utilities.actionsToPopup(Utilities.java:2723)
Comment 1 sinobra 2010-11-15 23:20:50 UTC
Created attachment 102991 [details]
stacktrace
Comment 2 gidoca 2011-01-18 10:42:15 UTC
Same problem here (Gentoo and Ubuntu, bot on AMD64, but not on my Laptop [Arch, i686]). It happens when you try to right click on a project in the project view. Note that Netbeans 6.8 works fine.
Comment 3 crishoj 2011-06-04 17:53:23 UTC
In my case the issue was due to an invalid Ruby platform specified for the project. Configuring the Ruby platform from File -> Project Properties fixed the problem.