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 235900 - NullPointerException at org.netbeans.api.editor.mimelookup.MimePath.parseImpl
Summary: NullPointerException at org.netbeans.api.editor.mimelookup.MimePath.parseImpl
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 20:42 UTC by steve612
Modified: 2013-10-10 13:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202918


Attachments
stacktrace (4.97 KB, text/plain)
2013-09-12 20:42 UTC, steve612
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steve612 2013-09-12 20:42:12 UTC
Build: NetBeans IDE 7.3.1 (Build 201306052037)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
GUEST: tools->options->format

and then, bang!

GUEST: <Please provide a description of the problem or the steps to reproduce>

GUEST: Open Option from Tool menu

GUEST: When I first run Tools->Options, and go to  editor and then code complation, there is nothing there and it throws the exception. When I close the window Options, and try to open it again, it doesn't let me to open it, throwing the error message.

steve612: in editor settings, code completion is empty and then the exception appears. When I close the Options window, after that I can't open it again. thanks




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.editor.mimelookup.MimePath.parseImpl(MimePath.java:446)
   at org.netbeans.api.editor.mimelookup.MimePath.parse(MimePath.java:234)
   at org.netbeans.api.editor.mimelookup.MimeLookup.getLookup(MimeLookup.java:134)
   at org.netbeans.modules.options.editor.completion.CodeCompletionOptionsPanelController$PreferencesFactory.getPreferences(CodeCompletionOptionsPanelController.java:273)
   at org.netbeans.modules.options.editor.completion.CodeCompletionOptionsSelector.getCustomizer(CodeCompletionOptionsSelector.java:110)
   at org.netbeans.modules.options.editor.completion.CodeCompletionOptionsSelector.getSelectedCustomizer(CodeCompletionOptionsSelector.java:96)
Comment 1 steve612 2013-09-12 20:42:14 UTC
Created attachment 140010 [details]
stacktrace
Comment 2 Milutin Kristofic 2013-10-10 13:07:53 UTC
This seems to be fixed in netbeans 7.4 by changes in options. It was called by help button, which should not initialize formating options now.