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 232318 - NullPointerException at org.netbeans.modules.options.editor.completion.CodeCompletionOptionsPanelController.applyChanges
Summary: NullPointerException at org.netbeans.modules.options.editor.completion.CodeCo...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-06 09:53 UTC by MackSix
Modified: 2013-08-13 12:06 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201943


Attachments
stacktrace (4.09 KB, text/plain)
2013-07-06 09:53 UTC, MackSix
Details
stacktrace (4.09 KB, text/plain)
2013-07-06 09:56 UTC, MackSix
Details
stacktrace (4.09 KB, text/plain)
2013-08-01 15:25 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-07-06 09:53:50 UTC
This bug was originally marked as duplicate of bug 171016, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201307032300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b16
OS: Windows 7

User Comments:
MackSix: 1. Tools>>Options>>Editor>>Formatting Tab.
2. Language Fortran
3. Uncheck Expand Tabs to Spaces
4. Click Appy Button
This NPE happens.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.options.editor.completion.CodeCompletionOptionsPanelController.applyChanges(CodeCompletionOptionsPanelController.java:126)
   at org.netbeans.modules.options.TabbedController.applyChanges(TabbedController.java:130)
   at org.netbeans.modules.options.CategoryModel$Category.applyChanges(CategoryModel.java:397)
   at org.netbeans.modules.options.CategoryModel$Category.access$1000(CategoryModel.java:322)
   at org.netbeans.modules.options.CategoryModel.save(CategoryModel.java:221)
   at org.netbeans.modules.options.OptionsPanel.save(OptionsPanel.java:315)
Comment 1 MackSix 2013-07-06 09:53:52 UTC
Created attachment 136757 [details]
stacktrace
Comment 2 MackSix 2013-07-06 09:56:37 UTC
Created attachment 136758 [details]
stacktrace

1. Tools>>Options>>Editor>>Formatting Tab.
2. Language HTML
3. Uncheck Use All Languages Settings
4. Click Appy Button
This NPE happens.
Comment 3 Milutin Kristofic 2013-07-16 17:09:47 UTC
I cannot reproduce this. It is necessary to use fortran plugin?
Comment 4 MackSix 2013-07-16 22:58:41 UTC
(In reply to comment #3)
> I cannot reproduce this. It is necessary to use fortran plugin?

Just the C/C++ plugin is sufficient. I can't get it to NPE now either. 

Why is there no RESOLVED: "Healed Itself" status? :)


Product Version: NetBeans IDE Dev (Build 201307152300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 5 MackSix 2013-08-01 01:28:57 UTC
This happens if you click Apply more than once.

1. Goto Tools>>Options>>Editor>>Code Completion.
2. Uncheck Auto Poup Completion Window.
3. Click Appy Button a few times quickly.

This NPE happens.
Comment 6 MackSix 2013-08-01 01:40:42 UTC
You may have to try the steps in Comment 5 a few times.

If the NPE does not happen, check the Fonts & Colors panel and it may be blank. Go back and view the Code Completion panel and the Language drop down list may be empty. 

Product Version: NetBeans IDE Dev (Build 201307302300)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 7 Milutin Kristofic 2013-08-01 12:31:49 UTC
Same issue as bug #232134
Comment 8 markiewb 2013-08-01 15:25:35 UTC
Created attachment 138137 [details]
stacktrace

Enabled "static imports" hint in Options/Editor/Hints/Java and the I applied my change.
Comment 9 Theofanis Oikonomou 2013-08-13 12:06:23 UTC
The sync issues should be fixed by http://hg.netbeans.org/core-main/rev/850afc4ddc5f. Please try a latest build and reopen if this is not the case. Thank you