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 227916 - NullPointerException at org.netbeans.modules.css.prep.refactoring.CPRenameRefactoringPlugin.checkParameters
Summary: NullPointerException at org.netbeans.modules.css.prep.refactoring.CPRenameRef...
Status: RESOLVED DUPLICATE of bug 229074
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords: REGRESSION
: 229093 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-25 17:13 UTC by tomjnsn
Modified: 2013-05-03 17:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 199877


Attachments
stacktrace (752 bytes, text/plain)
2013-03-25 17:13 UTC, tomjnsn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomjnsn 2013-03-25 17:13:00 UTC
Build: NetBeans IDE Dev (Build 201303232300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Mac OS X

User Comments:
tomjnsn: Trying to rename a folder.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.css.prep.refactoring.CPRenameRefactoringPlugin.checkParameters(CPRenameRefactoringPlugin.java:99)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsCheckParams(AbstractRefactoring.java:505)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.checkParameters(AbstractRefactoring.java:264)
   at org.netbeans.modules.web.common.refactoring.RenameRefactoringUI.setParameters(RenameRefactoringUI.java:110)
   at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:990)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Comment 1 tomjnsn 2013-03-25 17:13:01 UTC
Created attachment 133049 [details]
stacktrace
Comment 2 Vladimir Riha 2013-04-26 13:23:32 UTC
Reproducible, simply right click on folder in HTML5 project and select rename. NPE pops out either if you type new name or if you just press Refactor.

The same happens with JavaWeb project and also if you simply select folder and hit F2.

Workaround is to rename folder without refactoring.


Please notice there is issue 228968 and issue 229074 with very similar stacktrace.



Product Version: NetBeans IDE Dev (Build web-main-10391-on-20130425)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Vladimir Riha 2013-04-26 13:27:33 UTC
Works in 7.3, always reproducible in several project types with fundamental folder operation and workaround might not be clear => I think it is P2
Comment 4 Vladimir Riha 2013-04-29 05:55:01 UTC
and another slightly different stacktrace has issue 229122
Comment 5 Marek Fukala 2013-05-02 11:12:51 UTC
already fixed

*** This bug has been marked as a duplicate of bug 229074 ***
Comment 6 Marek Fukala 2013-05-03 17:39:44 UTC
*** Bug 229093 has been marked as a duplicate of this bug. ***