# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /Users/samuel/Documents/Java/NetBeans/main-golden/java.editor/src/org/netbeans/modules/java/editor/imports # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: JavaFixAllImports.java --- JavaFixAllImports.java Base (BASE) +++ JavaFixAllImports.java Locally Modified (Based On LOCAL) @@ -321,7 +321,8 @@ private ImportVisitor (CompilationInfo info) { this.info = info; - currentPackage = info.getCompilationUnit().getPackageName().toString(); + ExpressionTree pkg = info.getCompilationUnit().getPackageName(); + currentPackage = pkg != null ? pkg.toString() : ""; imports = new ArrayList(); }