Wrong offset: 52697. Should be in range: [0, 47255]: Wrong offset: 52697.
Should be in range: [0, 47255]
java.lang.IndexOutOfBoundsException: Wrong offset: 52697. Should be in range:
[0, 47255]
at com.intellij.openapi.editor.ex.util.SegmentArray.findSegmentIndex(SegmentArray.java:96)
at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:40)
at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:678)
at com.dci.intellij.dbn.language.psql.PSQLFoldingBuilder.createFoldingDescriptors(PSQLFoldingBuilder.java:60)
at com.dci.intellij.dbn.language.psql.PSQLFoldingBuilder.createFoldingDescriptors(PSQLFoldingBuilder.java:104)
at com.dci.intellij.dbn.language.psql.PSQLFoldingBuilder.createFoldingDescriptors(PSQLFoldingBuilder.java:104)
at com.dci.intellij.dbn.language.psql.PSQLFoldingBuilder.createFoldingDescriptors(PSQLFoldingBuilder.java:104)
at com.dci.intellij.dbn.language.psql.PSQLFoldingBuilder.buildFoldRegions(PSQLFoldingBuilder.java:23)
at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:78)
at com.intellij.codeInsight.folding.impl.DocumentFoldingInfo.buildRanges(DocumentFoldingInfo.java:156)
at com.intellij.codeInsight.folding.impl.DocumentFoldingInfo.setToEditor(DocumentFoldingInfo.java:117)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.restoreFoldingState(CodeFoldingManagerImpl.java:331)
at com.dci.intellij.dbn.common.editor.BasicTextEditorState$1.run(BasicTextEditorState.java:122)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Original issue reported on code.google.com by cioca...@googlemail.com on 23 Jan 2013 at 7:41
Original issue reported on code.google.com by
cioca...@googlemail.com
on 23 Jan 2013 at 7:41