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 107956

Summary: [NB6] NPE on first start.
Product: editor Reporter: mdakin <mdakin>
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 106361    

Description mdakin 2007-06-25 07:39:14 UTC
I got the following exception on the first start of a NB& nightly.

Product Version: NetBeans IDE Dev (Build 200706230000) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Linux version 2.6.18.8-84 running on i386; UTF-8; tr_TR (nb) Userdir: /home/mdakin/.netbeans/dev

java.lang.NullPointerException
	at org.netbeans.modules.editor.java.NbJavaFormatter.reformat(NbJavaFormatter.java:44)
[catch] at org.netbeans.modules.options.indentation.IndentationPanel$1.run(IndentationPanel.java:237)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 mdakin 2007-06-25 07:44:53 UTC
Sorry. this happens when I open options window from Tools -> Options
Comment 2 Jiri Prox 2007-06-25 09:19:07 UTC
Reproducible,
It's quite annoying, happens everytime options dialog is opened

Product Version: NetBeans IDE Dev (Build 200706250448) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /space/u5
Comment 3 Dusan Balek 2007-06-25 10:07:34 UTC
Fixed.
Comment 4 Jiri Prox 2007-06-25 13:45:12 UTC
Another testcase: use fori abbreviation
Anyway the fix is ok - verified in trunk, please, fix it also in m10 branch, thanks.
Comment 5 Jiri Prox 2007-06-26 10:17:19 UTC
*** Issue 108103 has been marked as a duplicate of this issue. ***
Comment 6 Dusan Balek 2007-06-26 14:40:43 UTC
Fixed also in release60-m10 branch.
Comment 7 Jiri Prox 2007-06-27 08:51:53 UTC
verified in m10