You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (Jira)" <ji...@apache.org> on 2023/01/04 22:35:00 UTC

[jira] [Resolved] (NETBEANS-4834) Bug in editor

     [ https://issues.apache.org/jira/browse/NETBEANS-4834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Lenz resolved NETBEANS-4834.
--------------------------------------
    Resolution: Cannot Reproduce

> Bug in editor
> -------------
>
>                 Key: NETBEANS-4834
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4834
>             Project: NetBeans
>          Issue Type: Bug
>          Components: web - HTML Editor
>    Affects Versions: 11.2
>         Environment: Windows 10
>            Reporter: Gianluca Demarinis
>            Priority: Minor
>
> Open a new file PHP and write only this code:
> <a href="https://api.whatsapp.com/send?text=<?php echo "See%20This%20http://www.site.org/index.php?id{color:#de350b}={color}" . $id; ?>">Share</a>
> Now try to auto-indent or indent manually using TAB. ---> Null Pointer Exception
> The problem seems to be the *{color:#ff0000}={color}* {color:#172b4d}symbol; {color}
> Restart NetBeans (if Exception appears), remove the red = and try to indent – > all is OK.
>  
> 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.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists