javax.swing.text.BadLocationException: Invalid offset=1 not within <0, 0> at org.netbeans.modules.editor.lib2.DocUtils.checkOffsetValid(DocUtils.java:192) at org.netbeans.modules.editor.lib2.DocUtils.checkOffsetValid(DocUtils.java:187) at org.netbeans.modules.editor.lib2.DocUtils.getRowStart(DocUtils.java:64) at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting$CaretRowHighlighting.getCurrentBlockPositions(CaretBasedBlockHighlighting.java:299) at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.updateLineInfo(CaretBasedBlockHighlighting.java:171) at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.(CaretBasedBlockHighlighting.java:111) at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting$CaretRowHighlighting.(CaretBasedBlockHighlighting.java:292) at org.netbeans.modules.editor.lib2.highlighting.Factory.createLayers(Factory.java:70) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting.rebuildAllLayers(HighlightingManager.java:288) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting.rebuildAll(HighlightingManager.java:258) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting.propertyChange(HighlightingManager.java:177) at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:186) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at java.awt.Component.firePropertyChange(Component.java:8085) at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:437) at javax.swing.JEditorPane.setEditorKit(JEditorPane.java:1098) at javax.swing.JEditorPane.setContentType(JEditorPane.java:1021) at org.netbeans.modules.collab.channel.chat.ChatInputPane._setContentType(ChatInputPane.java:220) at org.netbeans.modules.collab.channel.chat.ChatComponent.setInputContentType(ChatComponent.java:657) at org.netbeans.modules.collab.channel.chat.ChatComponent$ContentTypeActionListener.actionPerformed(ChatComponent.java:1284) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.Component.processMouseEvent(Component.java:6220) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5985) at java.awt.Container.processEvent(Container.java:2036) at java.awt.Component.dispatchEventImpl(Component.java:4587) at java.awt.Container.dispatchEventImpl(Container.java:2094) at java.awt.Component.dispatchEvent(Component.java:4417) at java.awt.LightweightDispatcher.retargetMouseEvent(LightweightDispatcher.java:4569) at java.awt.LightweightDispatcher.processMouseEvent(LightweightDispatcher.java:4233) at java.awt.LightweightDispatcher.dispatchEvent(LightweightDispatcher.java:4163) at java.awt.Container.dispatchEventImpl(Container.java:2080) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4417) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)