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 63471 - ShortcutsFolder throws NPE during startup if Options - Editor disabled
Summary: ShortcutsFolder throws NPE during startup if Options - Editor disabled
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-08-31 21:03 UTC by Jesse Glick
Modified: 2008-12-22 22:50 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-08-31 21:03:23 UTC
E.g. if you turn off autoupdate. Then in SF.refresh, the line

String keymapName = (String) fo.getAttribute ("currentProfile");

throws NPE and startup halts.

Should fall back on pre-4.2 behavior if PROFILES_FOLDER does not exist, I guess?
For compat, and for platform usage?
Comment 1 Jesse Glick 2005-08-31 22:46:05 UTC
Totally breaks platform usage, in fact. I think I see an easy fix.
Comment 2 Jesse Glick 2005-08-31 23:07:14 UTC
Have working patch.
Comment 3 Jesse Glick 2005-09-01 00:02:26 UTC
Should be fixed now but Hanz please review diff.

committed     Up-To-Date  1.29       
core/src/org/netbeans/core/ShortcutsFolder.java
Comment 4 Jan Jancura 2005-09-01 09:09:49 UTC
fix looks good. Thanks.