[ 
https://issues.apache.org/jira/browse/NETBEANS-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840400#comment-16840400
 ] 

Loïc Broquet edited comment on NETBEANS-2551 at 5/15/19 1:41 PM:
-----------------------------------------------------------------

Here is an exemple code to reproduce :
{code:java}
public class InnerConstructor {

 private static class InnerClassParent {

  InnerClassParent(String param) {
  }
 }

 private static class InnerClass extends InnerClassParent {

  InnerClass() {
   super(null);
  }
 }
}
{code}
Steps to reproduce :
 # Highlight the "null" keyword in the constructor of InnerClass
 # activate the hint either by clicking the bulb or Alt-space or whatever
 # select "Introduce Parameter..."

That procedure always raises the exception on my computer under Windows 10.


was (Author: lolo101):
Here is an exemple code to reproduce :
{code:java}
public class InnerConstructor {

 private static class InnerClassParent {

  InnerClassParent(String param) {
   System.out.println(param);
  }
 }

 private static class InnerClass extends InnerClassParent {

  InnerClass() {
   super(null);
  }
 }
}
{code}
Steps to reproduce :

 
 # Highlight the "null" keyword in the constructor of InnerClass
 # activate the hint either by clicking the bulb or Alt-space or whatever
 # select "Introduce Parameter..."

That procedure always raises the exception on my computer under Windows 10.

> NPE @ 
> org.netbeans.modules.refactoring.java.plugins.IntroduceParameterPlugin.initDelegate
> -----------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-2551
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2551
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Refactoring
>    Affects Versions: 11.0
>            Reporter: Loïc Broquet
>            Priority: Major
>         Attachments: log.txt
>
>
> The the constructor of a private static inner class, when I try to introduce 
> a new constructor parameter through automatic refactor, I get the attached 
> exception



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to