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 253637

Summary: NullPointerException at com.welovecoding.nbeditorconfig.processor.FileInfo.getCurrentCaretPosition
Product: third-party Reporter: rptmaestro <rptmaestro>
Component: -- Other --Assignee: issues@third-party <issues>
Status: RESOLVED WONTFIX    
Severity: normal CC: rptmaestro
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 218685
Attachments: stacktrace

Description rptmaestro 2015-07-22 05:52:53 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Mac OS X

User Comments:
rptmaestro: Clicked in the editor. No caret was appearing.




Stacktrace: 
java.lang.NullPointerException
   at com.welovecoding.nbeditorconfig.processor.FileInfo.getCurrentCaretPosition(FileInfo.java:65)
   at com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation.detectCaretOffset(TrimTrailingWhiteSpaceOperation.java:51)
   at com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation.operate(TrimTrailingWhiteSpaceOperation.java:30)
   at com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation.operate(TrimTrailingWhiteSpaceOperation.java:20)
   at com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor.excuteOperations(EditorConfigProcessor.java:190)
   at com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor.applyRulesToFile(EditorConfigProcessor.java:95)
Comment 1 rptmaestro 2015-07-22 05:52:55 UTC
Created attachment 154786 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-07-22 07:09:07 UTC
It seems to be a bug in a third-party plugin.

Reported to issue tracker of the plugin:
https://github.com/welovecoding/editorconfig-netbeans/issues/83