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.
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).
Created attachment 78418 [details] Proposed fix against recent main-golden
Thanks for filing this issue and patch, integrated. --- http://hg.netbeans.org/jet-main/rev/7cb5d4e0768c
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
Should I have commented the empty String with NOI18N?
Not necessary IMHO, thanks.
*** Issue 160002 has been marked as a duplicate of this issue. ***
claiming in the name of NetFIX ;-)