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 255293 - [81cat]NullPointerException at org.netbeans.modules.options.keymap.ProfilesPanel.importButtonActionPerformed
Summary: [81cat]NullPointerException at org.netbeans.modules.options.keymap.ProfilesPa...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-15 11:29 UTC by -Silver-
Modified: 2015-09-30 01:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219937


Attachments
stacktrace (7.22 KB, text/plain)
2015-09-15 11:29 UTC, -Silver-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description -Silver- 2015-09-15 11:29:17 UTC
Build: NetBeans IDE Dev (Build 201509150002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b02, Java(TM) SE Runtime Environment, 1.8.0_66-ea-b02
OS: Windows 7

User Comments:
-Silver-: This exception is thrown when importing a keymap profile is selected an invalid xml file.
Steps to reproduce:
1. Open Options -> Keymap -> Manage profiles...
2. In the Manage Keymap Profiles click on "Import" 
3. Select a generic xml file that doesn't contain a netbeans keymap profile.

Expected behaviour:
A JDialog is shown indicating that the selected file doesn't contain a valid netbeans keymap profile

Actual result:
An exception is thrown.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.options.keymap.ProfilesPanel.importButtonActionPerformed(ProfilesPanel.java:390)
   at org.netbeans.modules.options.keymap.ProfilesPanel.access$600(ProfilesPanel.java:82)
   at org.netbeans.modules.options.keymap.ProfilesPanel$6.actionPerformed(ProfilesPanel.java:164)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
Comment 1 -Silver- 2015-09-15 11:29:19 UTC
Created attachment 156181 [details]
stacktrace
Comment 2 Svata Dedic 2015-09-21 08:51:38 UTC
Should be fixed by jet-main#36b17c6c9d6d
Comment 3 Quality Engineering 2015-09-30 01:19:39 UTC
Integrated into 'main-silver', will be available in build *201509300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/36b17c6c9d6d
User: Svata Dedic <sdedic@netbeans.org>
Log: #255293: improved error reporting