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.

View | Details | Raw Unified | Return to bug 160602
Collapse All | Expand All

(-)JavaFixAllImports.java (-1 / +2 lines)
Lines 321-327 Link Here
321
321
322
        private ImportVisitor (CompilationInfo info) {
322
        private ImportVisitor (CompilationInfo info) {
323
            this.info = info;
323
            this.info = info;
324
            currentPackage = info.getCompilationUnit().getPackageName().toString();
324
			ExpressionTree pkg = info.getCompilationUnit().getPackageName();
325
            currentPackage = pkg != null ? pkg.toString() : "";
325
            imports = new ArrayList<TreePathHandle>();
326
            imports = new ArrayList<TreePathHandle>();
326
        }
327
        }
327
328

Return to bug 160602