Christian Lenz created NETBEANS-5857: ----------------------------------------
Summary: Emptx rename dialog shows error on hitting preview or refactor Key: NETBEANS-5857 URL: https://issues.apache.org/jira/browse/NETBEANS-5857 Project: NetBeans Issue Type: Bug Components: editor - Refactoring, lsp Affects Versions: 12.4 Environment: Product Version: Apache NetBeans IDE 12.4 Java: 14; OpenJDK 64-Bit Server VM 14+36-1461 Runtime: OpenJDK Runtime Environment 14+36-1461 System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb) User directory: C:\Users\Chris\AppData\Roaming\Netbeans\12.4 Cache directory: C:\Users\Chris\AppData\Local\NetBeans\Cache\12.4 Reporter: Christian Lenz Assignee: Jan Lahoda When I hit the rename dialog in a typescript file when the file is empty or in a context where I can't open this dialog, the dialog which comes up is empty and I can click on preview or refactor. First it shows me this error Module LSP Client threw java.lang.NullPointerException. Please report a bug against LSP Client module and attach your var/log/messages.log. and second an Unexpected Exception was thrown: {code} java.lang.NullPointerException at org.netbeans.modules.lsp.client.bindings.refactoring.Refactoring$RenameRefactoringPlugin.prepare(Refactoring.java:222) [catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:417) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:401) at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:212) at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:1063) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) {code} Steps to reproduce * Open a clean instance of NetBeans 12.4 * Create an HTML5 project and let everything to default * Right click and choose New -> Other -> Other -> empty file and name it foo.ts * Open the file and hit ctrl + r for rename * An empty rename popup opens * Click on preview or refactor and see exception. Was was expected That I can't open the rename dialog due to a missing context and I need to see the info, that I can't rename here due to the missing context as in other parts of the IDE. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- 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