{"action":"reopened","issue":{"url":"https://api.github.com/repos/antlr/intellij-plugin-v4/issues/214","labels_url":"https://api.github.com/repos/antlr/intellij-plugin-v4/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/antlr/intellij-plugin-v4/issues/214/comments","events_url":"https://api.github.com/repos/antlr/intellij-plugin-v4/issues/214/events","html_url":"https://github.com/antlr/intellij-plugin-v4/issues/214","id":101730446,"number":214,"title":"NPE in version 14.1.4 while editing grammar","user":{"login":"malduarte","id":2080029,"avatar_url":"https://avatars.githubusercontent.com/u/2080029?v=3","gravatar_id":"","url":"https://api.github.com/users/malduarte","html_url":"https://github.com/malduarte","followers_url":"https://api.github.com/users/malduarte/followers","following_url":"https://api.github.com/users/malduarte/following{/other_user}","gists_url":"https://api.github.com/users/malduarte/gists{/gist_id}","starred_url":"https://api.github.com/users/malduarte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malduarte/subscriptions","organizations_url":"https://api.github.com/users/malduarte/orgs","repos_url":"https://api.github.com/users/malduarte/repos","events_url":"https://api.github.com/users/malduarte/events{/privacy}","received_events_url":"https://api.github.com/users/malduarte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/antlr/intellij-plugin-v4/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/antlr/intellij-plugin-v4/labels/status:cannot-reproduce","name":"status:cannot-reproduce","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-18T19:23:32Z","updated_at":"2015-11-01T18:29:28Z","closed_at":null,"body":"When I open the following grammar from http://www.alexecollins.com/antlr4-and-maven-tutorial/\r\n\r\n```\r\ngrammar Field;\r\n\r\nfield:\r\n    name=Name NL\r\n    (points NL)+\r\n    (burial NL)+\r\n    EOF;\r\n\r\npoints: treasure=Name WS 'scores' WS value=Int WS 'points';\r\nburial: treasure=Name WS 'is' WS 'buried' WS 'at' WS at=location ;\r\nlocation: x=Int ',' y=Int;\r\n\r\nName: '\"' ('A'..'Z' | 'a'..'z' | ' ')+ '\"' ;\r\nInt: ('0'..'9')+;\r\n\r\nWS: (' ' | '\\t')+;\r\nNL:  '\\r'? '\\n';\r\n```\r\n\r\nI have this NPE\r\n\r\n```\r\nnull\r\njava.lang.NullPointerException\r\n\tat org.antlr.intellij.plugin.preview.InputPanel.clearGrammarHighlighters(InputPanel.java:461)\r\n\tat org.antlr.intellij.plugin.profiler.ProfilerPanel.mouseEnteredGrammarEditorEvent(ProfilerPanel.java:99)\r\n\tat org.antlr.intellij.plugin.ANTLRv4PluginController.mouseEnteredGrammarEditorEvent(ANTLRv4PluginController.java:288)\r\n\tat org.antlr.intellij.plugin.ANTLRv4PluginController$GrammarEditorMouseAdapter.mouseClicked(ANTLRv4PluginController.java:521)\r\n\tat com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.b(EditorImpl.java:5650)\r\n\tat com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:5580)\r\n\tat java.awt.Component.processMouseEvent(Component.java:6525)\r\n\tat javax.swing.JComponent.processMouseEvent(JComponent.java:3324)\r\n\tat java.awt.Component.processEvent(Component.java:6290)\r\n\tat java.awt.Container.processEvent(Container.java:2234)\r\n\tat java.awt.Component.dispatchEventImpl(Component.java:4881)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2292)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)\r\n\tat java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)\r\n\tat java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2278)\r\n\tat java.awt.Window.dispatchEventImpl(Window.java:2750)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:731)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:729)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:728)\r\n\tat com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:565)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n\r\n```"}}