matthiasblaesing opened a new pull request, #5393:
URL: https://github.com/apache/netbeans/pull/5393

   Observed exception:
   
   ```
   java.lang.NullPointerException: Cannot invoke 
"javax.swing.text.Caret.getDot()" because "this.caret" is null
               at 
java.desktop/javax.swing.text.JTextComponent.getCaretPosition(JTextComponent.java:1704)
               at 
org.netbeans.modules.lsp.client.bindings.MarkOccurrences.<init>(MarkOccurrences.java:71)
               at 
org.netbeans.modules.lsp.client.bindings.TextDocumentSyncServerCapabilityHandler.lambda$registerBackgroundTasks$6(TextDocumentSyncServerCapabilityHandler.java:330)
               at 
java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
               at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
               at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
               at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
               at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
               at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
               at 
java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
               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)
   ```
   
   The fix is similar to this fix:
   
https://github.com/apache/netbeans/pull/2775/commits/22f5827525e281e1f4eb5d870026719d04de7655


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to