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.
Build: NetBeans IDE 7.0 Beta (Build 201011152355) VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261 OS: Mac OS X User Comments: shantanoo: Trying to change global paramters for Editor -> Formating, Language - Python GUEST: I have the python plugin installed. I went to Options -> Editor -> Formatting; selected Python as the language and then selected "Spaces" as the category. After a few seconds loading (netbook) this error popped up. GUEST: project specific formatting options for python / spaces Stacktrace: java.lang.NullPointerException at org.netbeans.modules.python.editor.PythonFormatter$1.run(PythonFormatter.java:411) at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314) at org.netbeans.modules.python.editor.PythonFormatter.reindent(PythonFormatter.java:349) at org.netbeans.modules.python.editor.PythonFormatter.reformat(PythonFormatter.java:126) at org.netbeans.modules.python.editor.options.FmtOptions$CategorySupport.refreshPreview(FmtOptions.java:667) at org.netbeans.modules.options.indentation.FormattingPanel$3.run(FormattingPanel.java:204)
Created attachment 103545 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=174109
Created attachment 106212 [details] stacktrace looking at the "spaces" pane in options->editor->formatting [language: python]
Created attachment 155920 [details] stacktrace Please assign to Python. To reproduce: Using an existing Python Ant project, Select a project top-level node, invoke Properties->Formatting Check "Use project specific options" Change the Category drop-down to "Spaces"
Created attachment 156303 [details] stacktrace Product = Python Steps to reproduce With a project open, Invoke "Project Properties" on that project Click "Formatting" Change "Category" to "Spaces" Exception occurs.
user: Julien Enselme <jenselme@netbeans.org> date: Tue Sep 29 17:48:26 2015 +0200 files: python.source/src/org/netbeans/modules/python/source/PythonFormatter.java description: #192816 avoid NullPointerException Check that context is not null before using it. This prevents the exception from occuring. However, the parameters are not taken into account. I'll try to complete the work soon.
Presumed fixed in Python .151118 (for IDE 8.1)
Verified, Fixed. Presumably by http://hg.netbeans.org/main/contrib/rev/dfeab4f40dfd