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

Summary: NullPointerException at org.netbeans.modules.ruby.railsprojects.RailsProjectUtil.getRailsVersion
Product: ruby Reporter: sinobra <sinobra>
Component: RailsAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: normal CC: crishoj, euwero, gidoca, jbragadeesh, levmatta, litianzzk, rbbicknell, tkrd_oiax, wladioh
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 170644
Attachments: stacktrace

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.