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 269758 - NullPointerException at org.netbeans.modules.web.refactoring.RefactoringUtil.getPackageName
Summary: NullPointerException at org.netbeans.modules.web.refactoring.RefactoringUtil....
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-06 13:21 UTC by alied
Modified: 2017-02-06 13:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 227954


Attachments
stacktrace (1.13 KB, text/plain)
2017-02-06 13:21 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2017-02-06 13:21:44 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Linux

User Comments:
alied: moving a package protected class to inside a public class in the same package. Not sure if there's anything else at play here...




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.refactoring.RefactoringUtil.getPackageName(RefactoringUtil.java:213)
   at org.netbeans.modules.web.refactoring.rename.WebXmlMove.getRenameItems(WebXmlMove.java:63)
   at org.netbeans.modules.web.refactoring.rename.BaseWebXmlRename.prepare(BaseWebXmlRename.java:73)
   at org.netbeans.modules.web.refactoring.WebRefactoringPlugin.prepare(WebRefactoringPlugin.java:74)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:442)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:426)
Comment 1 alied 2017-02-06 13:21:46 UTC
Created attachment 163579 [details]
stacktrace