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

unable to insert new line into js file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 11.2
    • None
    • None
    • None

    Description

      SEVERE [global]
      java.lang.NullPointerException
      at org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557)
      at org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051)
      at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
      at org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
      at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122)
      at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607)
      at org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
      at org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.<init>(ElementsIterator.java:63)
      at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.<init>(SyntaxAnalyzer.java:57)
      at org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
      at org.netbeans.modules.html.editor.indent.HtmlIndenter.<init>(HtmlIndenter.java:63)
      at org.netbeans.modules.html.editor.indent.HtmlIndentTask.<init>(HtmlIndentTask.java:40)
      at org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
      at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
      at org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315)
      at org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
      at org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136)
      at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91)
      at org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:1518)
      at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322)
      at java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810)
      at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2900)
      at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2948)
      at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862)
      at java.desktop/java.awt.Component.processEvent(Component.java:6413)
      at java.desktop/java.awt.Container.processEvent(Container.java:2263)
      at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012)
      at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
      at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:870)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1139)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1009)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:835)
      at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4893)
      at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
      at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
      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.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      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:742)
      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)

      <record>
      <date>2019-11-15T13:17:15</date>
      <millis>1573784235159</millis>
      <sequence>2610</sequence>
      <level>500</level>
      <thread>24</thread>
      <message>UI_ACTION_EDITOR</message>
      <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=ENTER,when=1573784235154,modifiers=] on org.openide.text.QuietEditorPane[,0,0,969x131785,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@26fb2deb,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=109,g=109,b=109],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=51,g=153,b=255],kit=org.netbeans.modules.csl.core.CslEditorKit@58bd7a0d,typeHandlers=]</param>
      <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=ENTER,when=1573784235154,modifiers=] on org.openide.text.QuietEditorPane[,0,0,969x131785,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@26fb2deb,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=109,g=109,b=109],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=51,g=153,b=255],kit=org.netbeans.modules.csl.core.CslEditorKit@58bd7a0d,typeHandlers=]</param>
      <param>org.netbeans.modules.csl.core.CslEditorKit$GsfInsertBreakAction[insert-break]</param>
      <param>org.netbeans.modules.csl.core.CslEditorKit$GsfInsertBreakAction@1250cbc1</param>
      <param>insert-break</param>
      </record>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gtinkler greg tinkler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: