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

2020-09-22 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto updated NETBEANS-4834:
---
Component/s: web - HTML Editor

> 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:
> https://api.whatsapp.com/send?text= "See%20This%20http://www.site.org/index.php?id{color:#de350b}={color}; . $id; 
> ?>">Share
> Now try to auto-indent or indent manually using TAB. ---> Null Pointer 
> Exception
> The problem seems to be the *{color:#ff}={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.(ElementsIterator.java:63)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndentTask.(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 
> 

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

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Open a new file PHP and write only this code:

https://api.whatsapp.com/send?text=http://www.site.org/index.php?id{color:#de350b}={color}; . $id; 
?>">Share

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

The problem seems to be the *{color:#ff}={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.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(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 

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

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

https://api.whatsapp.com/send?text=http://www.site.org/index.php?id{color:#de350b}={color}; . $id; 
?>">Share

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

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

 

 

 

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.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(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)

 

 

 

  was:
Write only this code


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

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

http://www.site.com?q{color:#ff}={color}; . 
$x; ?>">

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

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

 

This code seems to be usefull but is used here:

 

https://api.whatsapp.com/send?text=http://www.site.org/index.php?id=; . $id; ?>">Share

 

 

 

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.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(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 

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

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

http://www.site.com?q*{color:#ff}={color}*; . 
$x; ?>">

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

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

 

This code seems to be usefull but is used here:

 

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

 

 

 

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.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(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 

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

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

http://www.site.com?q{color:#ff}={color}; . 
$x; ?>">

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

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

 

This code seems to be usefull but is used here:

 

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

 

 

 

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.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(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 

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

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Priority: Minor  (was: Major)

> 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
>Priority: Minor
>
> Write only this code
> http://www.site.com?q*{color:#FF}={color}*; 
> . $x; ?>">a>
> now try to auto-indent or indent using TAB. ---> Null Pointer Exception
> The problem seems to be the *{color:#FF}={color}* 
> {color:#172b4d}symbol{color}
>  
> This code seems to be usefull but is used here:
>  
>  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=  echo $id; ?>">
>  Whatsapp
>  
>  
>  
>  
> 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.(ElementsIterator.java:63)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndentTask.(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 
>