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 200423 - Exception when right-clicking newly created sample application ("Depot")
Summary: Exception when right-clicking newly created sample application ("Depot")
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 12:22 UTC by Rogach
Modified: 2011-07-27 12:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The log file from ide. (96.38 KB, application/octet-stream)
2011-07-27 12:22 UTC, Rogach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rogach 2011-07-27 12:22:25 UTC
Created attachment 109639 [details]
The log file from ide.

I created a sample application ("Depot"), which came with Ruby plugin. But when I try to right click the project to get to it's settings, no menu comes out, and NullPointerException happenes.
And on the most items in this project (like "Helpers", "Models", "Libs", etc) some items in popup menus are duplicated - for example, there are two "New" submenus.

Stack trace:

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:2732)
	at org.openide.util.Utilities.actionsToPopup(Utilities.java:2824)
	at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1075)
	at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1558)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:189)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.mousePressed(MouseUtils.java:180)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.Component.processMouseEvent(Component.java:6285)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6053)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4651)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
	at java.awt.EventQueue.access$000(EventQueue.java:84)
	at java.awt.EventQueue$1.run(EventQueue.java:602)
	at java.awt.EventQueue$1.run(EventQueue.java:600)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$2.run(EventQueue.java:616)
	at java.awt.EventQueue$2.run(EventQueue.java:614)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Rogach 2011-07-27 12:24:45 UTC
On the new clean Ruby on Rails project I am able to do right-click on the project, but menu items are still duplicated.

I am using 0.111 version of Ruby plugin - installed it from IDE plugin manager.