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.
When I start the IDE 5.0 RC1 on both Linux and Windows platform I get the following: (I run the IDE from unpacked zipped packages, since the binary installer is buggy (issue 48633) java.lang.NullPointerException at org.netbeans.core.ShortcutsFolder.addShortcut(ShortcutsFolder.java:146) at org.netbeans.core.ShortcutsFolder.readShortcuts(ShortcutsFolder.java:133) at org.netbeans.core.ShortcutsFolder.refresh(ShortcutsFolder.java:111) at org.netbeans.core.ShortcutsFolder.<init>(ShortcutsFolder.java:78) at org.netbeans.core.ShortcutsFolder.initShortcuts(ShortcutsFolder.java:59) at org.netbeans.core.NonGui.initializeMainWindow(NonGui.java:187) at org.netbeans.core.NonGui.run(NonGui.java:96) at org.netbeans.core.startup.Main.start(Main.java:395) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90) [catch] at java.lang.Thread.run(Thread.java:595)
jlahoda, please look at this.
Not quite sure why me :-). Seems that there is something strange in the "Shortcuts" folder. The solution is twofold: 1. Find out what is the strange thing in the shortcuts folder (and remove it). 2. Fix the org.netbeans.core.ShortcutsFolder to handle this situation gracefully - should be enough to add if (keyStrokes != null) before line 133 (and do some logging if keyStrokes == null). Reporter, do you have any additional modules installed? Could you please try to run NB with "-J-Dorg.netbeans.core.ShortcutsFolder=0" command line switch and attach full messages.log to this bug? Thanks.
I will take this issue. Problem is actualy with Utilities.stringToKeys which uses String.toUpperCase().
*** Issue 71818 has been marked as a duplicate of this issue. ***
Fixed in main trunk. Use String.toUpperCase(Locale.ENGLISH) in stringToKey and stringToKeys instead of String.toUpperCase(). Modified: openide/util/src/org/openide/util/Utilities.java new revision: 1.8; previous revision: 1.7
BTW reporter: if you ever have a weird problem with a Java app that no one else seems to have, and you are running in Turkish locale, mention that in the bug report - usually a missing Locale.ENGLISH param in some String.to{Upper,Lower}Case, making code get confused by the Turkish dotted vs. undotted 'I'.
*** Issue 72903 has been marked as a duplicate of this issue. ***
*** Issue 73562 has been marked as a duplicate of this issue. ***
*** Issue 73906 has been marked as a duplicate of this issue. ***
Probably we can fix this for NB 5.5 as well, what do you think ?
It is simple and low risk fix. If you thing it is worth to fix it in NB 5.5 go ahead.
Also note that the NPE is not thrown after the fix to ShortcutsFolder (1.42) from issue #74169. However that just prevents the exception; Marek's patch actually fixes the cause.
*** Issue 73410 has been marked as a duplicate of this issue. ***
Ok Marek, please fix this for NB 5.5.
Fixed in branch 'release55': openide/util/src/org/openide/util/Utilities.java new revision: 1.4.6.2.2.1; previous revision: 1.4.6.2