Gianluca Demarinis created NETBEANS-4834:
--------------------------------------------

             Summary: Bug in editor
                 Key: NETBEANS-4834
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4834
             Project: NetBeans
          Issue Type: Bug
    Affects Versions: 11.2
         Environment: Windows 10
            Reporter: Gianluca Demarinis


Write only this code

<a href="something<?php echo "http://www.site.com?q*{color:#FF0000}={color}*"; . 
$x; ?>"></a>a>

now try to auto-indent or indent using TAB. ---> Null Pointer Exception

The problem seems to be the *{color:#FF0000}={color}* 
{color:#172b4d}symbol{color}

 

This code seems to be usefull but is used here:

 

<a 
href="[https://api.whatsapp.com/send?text=See%20this%20link|https://api.whatsapp.com/send?text=See]%0A%0Ahttp://www.site.com/element.php?id=<?php
 echo $id; ?>">
 Whatsapp
 </a>

 

 

 

java.lang.NullPointerExceptionjava.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$InsertTabAction.actionPerformed(BaseKit.java:1728) 
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
java.awt.Component.processEvent(Component.java:6310) at 
java.awt.Container.processEvent(Container.java:2236) at 
java.awt.Component.dispatchEventImpl(Component.java:4889) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Window.dispatchEventImpl(Window.java:2746) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
java.awt.EventQueue.access$500(EventQueue.java:97) at 
java.awt.EventQueue$3.run(EventQueue.java:709) at 
java.awt.EventQueue$3.run(EventQueue.java:703) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
 at java.awt.EventQueue$4.run(EventQueue.java:731) at 
java.awt.EventQueue$4.run(EventQueue.java:729) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

 

 

 



--
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

Reply via email to