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.
Integrated into 'main-golden', will be available in build *200903310200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Max Sauer <firstname.lastname@example.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 ;-)