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.
Build: NetBeans IDE Dev (Build 20080830055830) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_05-b13-52, Java(TM) SE Runtime Environment, 1.6.0_05-b13-120 OS: Mac OS X, 10.5.4, x86_64 User Comments: tried to run statement in sql editor Stacktrace: java.lang.NullPointerException at org.openide.awt.Mnemonics.findMnemonicAmpersand(Mnemonics.java:169) at org.openide.awt.AlwaysEnabledAction.extractCommonAttribute(AlwaysEnabledAction.java:91) at org.openide.awt.AlwaysEnabledAction.getValue(AlwaysEnabledAction.java:78) at javax.swing.AbstractButton.setMnemonicFromAction(AbstractButton.java:1269) at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1173) at javax.swing.JMenuItem.configurePropertiesFromAction(JMenuItem.java:359)
Created attachment 68705 [details] stacktrace
Build: NetBeans IDE Dev (Build 200808311401) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06, Java(TM) SE Runtime Environment, 1.6.0_02-b06 OS: Windows XP, 5.1, x86 User Comments: I was doing the ajax-text-scriptaculous.html tutorial. got this exception when I copy and paste below sql script on SQL Command. CREATE TABLE STATES ( id INT, abbrev VARCHAR(2), name VARCHAR(50), PRIMARY KEY (id) ); Stacktrace: java.lang.NullPointerException at org.openide.awt.Mnemonics.findMnemonicAmpersand(Mnemonics.java:169) at org.openide.awt.AlwaysEnabledAction.extractCommonAttribute(AlwaysEnabledAction.java:91) at org.openide.awt.AlwaysEnabledAction.getValue(AlwaysEnabledAction.java:78) at javax.swing.AbstractButton.setMnemonicFromAction(AbstractButton.java:1236) at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1140) at javax.swing.JMenuItem.configurePropertiesFromAction(JMenuItem.java:359)
Created attachment 68757 [details] stacktrace
Build: NetBeans IDE Dev (Build 200808311401) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06, Java(TM) SE Runtime Environment, 1.6.0_02-b06 OS: Windows XP, 5.1, x86 User Comments: I was doing the ajax-text-scriptaculous.html tutorial. got this exception when I copy and paste below sql script on SQL Command. this happen when I right click the SQL Command Editor. CREATE TABLE STATES ( id INT, abbrev VARCHAR(2), name VARCHAR(50), PRIMARY KEY (id) ); Stacktrace: java.lang.NullPointerException at org.openide.awt.Mnemonics.findMnemonicAmpersand(Mnemonics.java:169) at org.openide.awt.AlwaysEnabledAction.extractCommonAttribute(AlwaysEnabledAction.java:91) at org.openide.awt.AlwaysEnabledAction.getValue(AlwaysEnabledAction.java:78) at javax.swing.AbstractButton.setMnemonicFromAction(AbstractButton.java:1236) at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1140) at javax.swing.JMenuItem.configurePropertiesFromAction(JMenuItem.java:359)
Created attachment 68758 [details] stacktrace
Build: NetBeans IDE Dev (Build 200808311401) VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.openide.awt.Mnemonics.findMnemonicAmpersand(Mnemonics.java:169) at org.openide.awt.AlwaysEnabledAction.extractCommonAttribute(AlwaysEnabledAction.java:91) at org.openide.awt.AlwaysEnabledAction.getValue(AlwaysEnabledAction.java:78) at javax.swing.AbstractButton.setMnemonicFromAction(AbstractButton.java:1236) at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1140) at javax.swing.JMenuItem.configurePropertiesFromAction(JMenuItem.java:359)
Created attachment 68766 [details] stacktrace
Passing to editor, as org.netbeans.modules.editor.NbEditorKit$NbBuildPopupMenuAction.createLocalizedMenuItem(NbEditorKit.java:402) is probably building action with null name, which is not allowed AFAIK.
Build: NetBeans IDE Dev (Build 200808311401) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Linux, 2.6.24.5-smp, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.openide.awt.Mnemonics.findMnemonicAmpersand(Mnemonics.java:169) at org.openide.awt.AlwaysEnabledAction.extractCommonAttribute(AlwaysEnabledAction.java:91) at org.openide.awt.AlwaysEnabledAction.getValue(AlwaysEnabledAction.java:78) at javax.swing.AbstractButton.setMnemonicFromAction(AbstractButton.java:0) at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:0) at javax.swing.JMenuItem.configurePropertiesFromAction(JMenuItem.java:0)
Created attachment 68786 [details] stacktrace
Well, people say that it happens in SQL editor, so it's likely to be some of the SQL popup actions...
Created attachment 68793 [details] stacktrace
*** This issue has been marked as a duplicate of 145751 ***