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 145675 - NullPointerException at org.openide.awt.Mnemonics.findMnemonicAmpersand
Summary: NullPointerException at org.openide.awt.Mnemonics.findMnemonicAmpersand
Status: RESOLVED DUPLICATE of bug 145751
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-30 11:34 UTC by Kenneth Ganfield
Modified: 2008-09-01 15:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 102017


Attachments
stacktrace (2.04 KB, text/plain)
2008-08-30 11:34 UTC, Kenneth Ganfield
Details
stacktrace (2.04 KB, text/plain)
2008-09-01 02:29 UTC, alcmontejo
Details
stacktrace (2.04 KB, text/plain)
2008-09-01 02:33 UTC, alcmontejo
Details
stacktrace (2.04 KB, text/plain)
2008-09-01 06:39 UTC, rajivderas
Details
stacktrace (2.01 KB, text/plain)
2008-09-01 13:03 UTC, davideconsonni
Details
stacktrace (2.01 KB, text/plain)
2008-09-01 14:57 UTC, davideconsonni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2008-08-30 11:34:36 UTC
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)
Comment 1 Kenneth Ganfield 2008-08-30 11:34:41 UTC
Created attachment 68705 [details]
stacktrace
Comment 2 alcmontejo 2008-09-01 02:29:53 UTC
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)
Comment 3 alcmontejo 2008-09-01 02:29:57 UTC
Created attachment 68757 [details]
stacktrace
Comment 4 alcmontejo 2008-09-01 02:33:00 UTC
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)
Comment 5 alcmontejo 2008-09-01 02:33:05 UTC
Created attachment 68758 [details]
stacktrace
Comment 6 rajivderas 2008-09-01 06:39:37 UTC
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)
Comment 7 rajivderas 2008-09-01 06:39:41 UTC
Created attachment 68766 [details]
stacktrace
Comment 8 David Simonek 2008-09-01 08:39:40 UTC
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.
Comment 9 davideconsonni 2008-09-01 13:03:03 UTC
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)
Comment 10 davideconsonni 2008-09-01 13:03:14 UTC
Created attachment 68786 [details]
stacktrace
Comment 11 Vitezslav Stejskal 2008-09-01 13:31:45 UTC
Well, people say that it happens in SQL editor, so it's likely to be some of the SQL popup actions...
Comment 12 davideconsonni 2008-09-01 14:57:33 UTC
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)
Comment 13 davideconsonni 2008-09-01 14:57:37 UTC
Created attachment 68793 [details]
stacktrace
Comment 14 Andrei Badea 2008-09-01 15:54:45 UTC

*** This issue has been marked as a duplicate of 145751 ***