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 160602

Summary: Fix imports NullPointerException in default package
Product: java Reporter: fommil <fommil>
Component: EditorAssignee: Max Sauer <msauer>
Status: RESOLVED FIXED    
Severity: blocker CC: 7bf
Priority: P3 Keywords: NETFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Proposed fix against recent main-golden

Description fommil 2009-03-18 23:55:09 UTC
I stumbled upon this little bug in a recent main-golden when trying to implement an RFE... if Fix Imports is invoked on a class which is in the default package, 
a NullPointerException is raised.

Proposed fix attached (soon).
Comment 1 fommil 2009-03-18 23:55:45 UTC
Created attachment 78418 [details]
Proposed fix against recent main-golden
Comment 2 Max Sauer 2009-03-30 11:25:03 UTC
Thanks for filing this issue and patch, integrated.
---
http://hg.netbeans.org/jet-main/rev/7cb5d4e0768c
Comment 3 Quality Engineering 2009-03-31 07:35:20 UTC
Integrated into 'main-golden', will be available in build *200903310200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7cb5d4e0768c
User: Max Sauer <msauer@netbeans.org>
Log: #160602: Fix imports NullPointerException in default package
Comment 4 fommil 2009-04-04 02:02:12 UTC
Should I have commented the empty String with NOI18N?
Comment 5 Max Sauer 2009-04-06 09:11:45 UTC
Not necessary IMHO, thanks.
Comment 6 Max Sauer 2009-04-10 10:01:21 UTC
*** Issue 160002 has been marked as a duplicate of this issue. ***
Comment 7 fommil 2009-04-22 21:16:50 UTC
claiming in the name of NetFIX ;-)