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 261585 - NullPointerException at org.netbeans.modules.refactoring.java.ui.RenameRefactoringUI$2.create
Summary: NullPointerException at org.netbeans.modules.refactoring.java.ui.RenameRefact...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-14 15:39 UTC by Shredder_121
Modified: 2016-08-11 11:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222761


Attachments
stacktrace (1.64 KB, text/plain)
2016-05-14 15:39 UTC, Shredder_121
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shredder_121 2016-05-14 15:39:45 UTC
Build: NetBeans Dev JDK9 branch (Build 201506180405)
VM: OpenJDK 64-Bit Server VM, 25.72-b15, OpenJDK Runtime Environment, 1.8.0_72-b15
OS: Windows 10

User Comments:
shredder_121: Try to rename a package-info file to module-info.

GUEST: I was trying to rename the package-info.java

GUEST: Trying to rename the package info




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.ui.RenameRefactoringUI$2.create(RenameRefactoringUI.java:423)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$3.createRefactoringUI(ContextAnalyzer.java:160)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$NodeToFileObjectTask.run(ContextAnalyzer.java:635)
   at org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:153)
   at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider$1.run(RefactoringActionsProvider.java:150)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
Comment 1 Shredder_121 2016-05-14 15:39:47 UTC
Created attachment 159769 [details]
stacktrace
Comment 2 Svata Dedic 2016-08-06 21:24:48 UTC
Bad parameter passed; fixed in jet-main#b6c6a62448bd
Comment 3 Quality Engineering 2016-08-11 01:56:24 UTC
Integrated into 'main-silver', will be available in build *201608110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b6c6a62448bd
User: Svata Dedic <sdedic@netbeans.org>
Log: #261585: prevented NPE
Comment 4 Shredder_121 2016-08-11 11:24:27 UTC
Awesome, thanks @sdedic!