Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5821

NullPointerException on renaming in TypeScript files

    XMLWordPrintableJSON

Details

    Description

      It is not possible to rename function/class etc in typescript files. These are details:

       

      java.lang.NullPointerException
       at org.netbeans.modules.lsp.client.bindings.refactoring.RenamePanel.getName(RenamePanel.java:74)
       at java.desktop/javax.swing.plaf.nimbus.NimbusDefaults$LazyStyle.matches(NimbusDefaults.java:1480)
       at java.desktop/javax.swing.plaf.nimbus.NimbusDefaults$LazyStyle.matches(NimbusDefaults.java:1472)
       at java.desktop/javax.swing.plaf.nimbus.NimbusDefaults.getStyle(NimbusDefaults.java:1161)
       at java.desktop/javax.swing.plaf.nimbus.NimbusLookAndFeel$1.getStyle(NimbusLookAndFeel.java:112)
       at java.desktop/javax.swing.plaf.synth.SynthLookAndFeel.getStyle(SynthLookAndFeel.java:240)
       at java.desktop/javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:261)
       at java.desktop/javax.swing.plaf.synth.SynthPanelUI.updateStyle(SynthPanelUI.java:116)
       at java.desktop/javax.swing.plaf.synth.SynthPanelUI.installDefaults(SynthPanelUI.java:100)
       at java.desktop/javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:62)
       at java.desktop/javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:62)
       at java.desktop/javax.swing.JComponent.setUI(JComponent.java:685)
       at java.desktop/javax.swing.JPanel.setUI(JPanel.java:150)
       at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
       at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
       at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
       at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
       at org.netbeans.modules.lsp.client.bindings.refactoring.RenamePanel.<init>(RenamePanel.java:30)
       at org.netbeans.modules.lsp.client.bindings.refactoring.RenameRefactoringUIImpl.getPanel(RenameRefactoringUIImpl.java:81)
       at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.<init>(ParametersPanel.java:131)
       at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.refresh(RefactoringPanel.java:656)
       at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.<init>(RefactoringPanel.java:144)
       at org.netbeans.modules.refactoring.spi.ui.UI.openRefactoringUI(UI.java:61)
       at org.netbeans.modules.lsp.client.bindings.refactoring.RefactoringActionsProvider.lambda$doRename$1(RefactoringActionsProvider.java:142)
       at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
       at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
       at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
       at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
       at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
       at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
       at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

      Attachments

        Activity

          People

            jlahoda Jan Lahoda
            Pavel_K Pavel_K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: