[ https://issues.apache.org/jira/browse/NETBEANS-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16874839#comment-16874839 ]
Thomas Kellerer commented on NETBEANS-2240: ------------------------------------------- This happens with NetBeans 10.0 as well. I don't really do anything else. I open the project, adjust the Java Platorm, run Clean & Build, Open the MyService class, put the cursor on the "getAnswer()" method, then choose "Refactor -> Rename", provide a different name and click on OK and then I get the NullPointerException in {noformat} Caused: java.lang.NullPointerException at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$MembersPhase.runPhase(TypeEnter.java:934){noformat} I tried with OpenJDK 11 and 12 (from AdoptOpenJDK) and with the Oracle JDK 11. Tried with an empty UserDir as well. This happens on two different computers (private and office) both running Windows 10 (1803), one is Windows 10 Professional, the other Windows 10 Home. I will record a video this evening showing all steps. > NPE thrown when refactoring a class > ----------------------------------- > > Key: NETBEANS-2240 > URL: https://issues.apache.org/jira/browse/NETBEANS-2240 > Project: NetBeans > Issue Type: Bug > Components: java - Source > Affects Versions: 10.0, 11.0 > Reporter: Thomas Kellerer > Priority: Major > Labels: ca_survey > Attachments: CommentsTest.dump, RefactorTestProject.zip, messages.log > > > Whenever I refactor a class (e.g rename, move), or public methods of a class > NB 11 throws a NPE. > This is a multi-module Maven project. > The Java source that is mentioned in the error message is always a test class > using TestNG. I don't seem to get that error with projects that do not use > TestNG. > Doing the refactoring with NetBeans 10 on the same project works without > problems. > Due to legal reasons I can not attach the source code that is part of the > dump file - I had to remove everything related to the "real" source and tried > to replace some path names revealing private information. I hope the files > are useful nevertheless -- 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