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 108750 - NPE during rename
Summary: NPE during rename
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
: 114313 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-03 13:03 UTC by Anton Chechel
Modified: 2007-08-31 09:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stacktrace (4.43 KB, text/plain)
2007-07-03 13:04 UTC, Anton Chechel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chechel 2007-07-03 13:03:51 UTC
Product Version: NetBeans IDE Dev (Build 070702) Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 System: Windows XP
version 5.1 running on x86; Cp1251; ru_RU (nb) Userdir: C:\Documents and Settings\Manowar\.netbeans\dev

NPE during rename of interface method implemented in other classes.
Comment 1 Anton Chechel 2007-07-03 13:04:11 UTC
Created attachment 44667 [details]
exception stacktrace
Comment 2 Jan Becicka 2007-07-03 13:25:05 UTC
Cannot reproduce, please provide steps to reproduce.
Comment 3 Anton Chechel 2007-07-03 14:35:45 UTC
Yes. Rename refactoring works fine in relative simple situations like inside one class. It seems doesn't work for
inheritance. I have interface and a lot of implementations of it. I need to rename method name in the interface and all
implementations accordingly. Please open mobility/designer2/midp project and try to rename
PropertyEditorElement.setText() to new name setTextForPropertyValue() . This is exactly what I need.
Comment 4 Jan Becicka 2007-07-03 19:33:34 UTC
Works for me. I opened PropertyEditorElement, its project, and all dependent projects and I renamed setText to
setTextForPropertyValue. I requested preview and I see 21 occurrences. But I didn't push refactor.
Doesn't seem to be reproducible.
Comment 5 Jiri Prox 2007-07-04 10:49:57 UTC
I can reproduce it. In the preview i've got only 20 occurrences found and after performing all usages in
org.netbeans.modules.vmd.midp.propertyeditors.eventhandler packages stays unchanged.
During the preparation of preview there was exception logged into console, but I'm not user if its somehow related.

Product Version: NetBeans IDE Dev (Build 200707040327) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System:
Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /space/u6
Full installation

java.lang.NullPointerException
        at
org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModelForServiceFromJava(WSITModelSupport.java:369)
        at org.netbeans.modules.websvc.wsitconf.refactoring.WSITRefactoringPlugin$1.run(WSITRefactoringPlugin.java:115)
        at org.netbeans.modules.websvc.wsitconf.refactoring.WSITRefactoringPlugin$1.run(WSITRefactoringPlugin.java:99)
        at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:563)
        at org.netbeans.modules.websvc.wsitconf.refactoring.WSITRefactoringPlugin.prepare(WSITRefactoringPlugin.java:93)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:327)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:177)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:724)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 6 Jan Becicka 2007-07-12 09:07:14 UTC
Please fix this NPE. Your refactoring plugin should not be enabled in this case I guess.
Comment 7 Martin Grebac 2007-07-12 16:06:51 UTC
This has been fixed some time ago.
Comment 8 Jiri Prox 2007-08-31 09:47:51 UTC
*** Issue 114313 has been marked as a duplicate of this issue. ***