You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by "Luff, Chris" <ch...@cerner.com.INVALID> on 2022/08/30 10:59:03 UTC

NetBeans 15

Just installed NetBeans 15, everything was running well until I started bumping into this error, it’s happened two or three times now.

I have not managed to reliably recreate it as yet - as soon as I can I will make a video, but essentially;

I have a block of code similar to this;

>> Optional.ofNullable(blah).ifPresent(b -> b.doSomething());

When I do something like;

>> Optional.ofNullable(blah).map()ifPresent(b -> b.doSomething());

i.e. the new code is in progress but the editor throws this error and I can no longer type inside the function. If I back out the map and make the code correct, the editor still does not respond to new characters. Other parts of the editor respond. If I then hit enter before the point where I was making the edit in the now correct syntax I can now type again.

Closing the file also clears the problem.


java.lang.NullPointerException: Cannot invoke "org.netbeans.lib.editor.codetemplates.textsync.TextRegion.regions()" because "parent" is null
at org.netbeans.lib.editor.codetemplates.textsync.TextRegionManager.fixRegionStartOffset(TextRegionManager.java:877)
at org.netbeans.lib.editor.codetemplates.textsync.TextRegionManager.insertUpdate(TextRegionManager.java:600)
at org.netbeans.lib.editor.codetemplates.textsync.TextRegionManager$DocListener.insertUpdate(TextRegionManager.java:1104)
at org.netbeans.editor.BaseDocument.handleInsertString(BaseDocument.java:845)
at org.netbeans.editor.BaseDocument$FilterBypassImpl.insertString(BaseDocument.java:2643)
at java.desktop/javax.swing.text.DocumentFilter.insertString(DocumentFilter.java:105)
at org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:2340)
at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:741)
at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.insertString(BaseKit.java:1324)
at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.performTextInsertion(BaseKit.java:1397)
at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.access$100(BaseKit.java:1052)
at org.netbeans.editor.BaseKit$DefaultKeyTypedAction$3.run(BaseKit.java:1256)
at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333)
at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1231)
at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1055)
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322)
at java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810)
at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2956)
at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:3004)
at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2918)
at java.desktop/java.awt.Component.processEvent(Component.java:6393)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4991)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4823)
at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1952)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:883)
at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1146)
at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1020)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:848)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4823)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
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:744)
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)


Associate Principal Engineer | UK Development - Care Insight and Delivery Dev | chris.luff@cerner.com<ma...@cerner.com> | Oracle Cerner



CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.