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 270851 - NullPointerException at org.netbeans.modules.python.editor.PythonFormatter$1.run
Summary: NullPointerException at org.netbeans.modules.python.editor.PythonFormatter$1.run
Status: NEW
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-11 04:37 UTC by Exceptions Reporter
Modified: 2017-06-11 04:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 229427


Attachments
stacktrace (1.66 KB, text/plain)
2017-06-11 04:37 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-06-11 04:37:32 UTC
This bug was originally marked as duplicate of bug 192816, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.131-b11, Java(TM) SE Runtime Environment, 1.8.0_131-b11
OS: Windows 10

User Comments:
mr_lou_d: Product = Python
Steps to reproduce
With a project open, Invoke "Project Properties" on that project
Click "Formatting"
Change "Category" to "Spaces"
Exception occurs.

GUEST: python plugin




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.python.editor.PythonFormatter$1.run(PythonFormatter.java:411)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:323)
   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:665)
   at org.netbeans.modules.options.indentation.FormattingPanel$3.run(FormattingPanel.java:230)
Comment 1 Exceptions Reporter 2017-06-11 04:37:35 UTC
Created attachment 164506 [details]
stacktrace