This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271533

Summary: NullPointerException at org.netbeans.editor.MarkBlock.getEndOffset
Product: editor Reporter: m1k0 <m1k0>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 230411
Attachments: stacktrace

Description m1k0 2017-09-26 19:05:54 UTC
Build: NetBeans IDE Dev (Build 201709240002)
VM: Java HotSpot(TM) 64-Bit Server VM, 9+181, Java(TM) SE Runtime Environment, 9+181
OS: Linux

User Comments:
m1k0: paste 'Set.of(1,22).getClass()' into Java Shell window




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.editor.MarkBlock.getEndOffset(MarkBlock.java:552)
   at org.netbeans.modules.editor.impl.highlighting.GuardedBlocksHighlighting$HSImpl.getEndOffset(GuardedBlocksHighlighting.java:258)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.fetchNextHighlight(DirectMergeContainer.java:633)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.init(DirectMergeContainer.java:532)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.<init>(DirectMergeContainer.java:234)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer.getHighlights(DirectMergeContainer.java:119)
Comment 1 m1k0 2017-09-26 19:05:57 UTC
Created attachment 165184 [details]
stacktrace