From: <no...@so...> - 2001-11-28 08:39:15
|
Bugs item #485939, was opened at 2001-11-27 01:35 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100588&aid=485939&group_id=588 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Ole Dalgaard (oledalgaard) Assigned to: Nobody/Anonymous (nobody) Summary: Length must be positive Initial Comment: After copy/pasting/auto-completing in a somewhat big file I get this: [error] java.lang.NullPointerException [error] at org.gjt.sp.jedit.textarea.JEditTextArea.completeWord(JEditTextArea.java:3776) [error] at java.lang.reflect.Method.invoke(Native Method) [error] at bsh.Reflect.invokeMethod(Reflect.java:355) [error] at bsh.Reflect.invokeObjectMethod(Reflect.java:80) [error] at bsh.Name.invokeMethod(Name.java:687) [error] at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:53) [error] at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) [error] at bsh.BSHBlock.eval(BSHBlock.java:74) [error] at bsh.BshMethod.invokeDeclaredMethod(BshMethod.java:164) [error] at bsh.NameSpace.invokeMethod(NameSpace.java:1053) [error] at bsh.NameSpace.invokeMethod(NameSpace.java:1025) [error] at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:369) [error] at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:58) [error] at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:188) [error] at org.gjt.sp.jedit.gui.DefaultInputHandler.keyPressed(DefaultInputHandler.java:231) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:4030) [error] at java.awt.Component.processEvent(Component.java:3553) [error] at java.awt.Container.processEvent(Container.java:1164) [error] at java.awt.Component.dispatchEventImpl(Component.java:2593) [error] at java.awt.Container.dispatchEventImpl(Container.java:1213) [error] at java.awt.Component.dispatchEvent(Component.java:2497) [error] at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155) [error] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135) [error] at java.awt.Container.dispatchEventImpl(Container.java:1200) [error] at java.awt.Window.dispatchEventImpl(Window.java:914) [error] at java.awt.Component.dispatchEvent(Component.java:2497) [error] at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) [error] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131) [error] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98) [error] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [error] at java.awt.EventDispatchThread.run(EventDispatchThread.java:85) When trying to save the file I get this: [error] javax.swing.text.BadLocationException: Length must be positive [error] at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:590) [error] at org.gjt.sp.jedit.io.BufferIORequest.write(BufferIORequest.java:684) [error] at org.gjt.sp.jedit.io.BufferIORequest.save(BufferIORequest.java:527) [error] at org.gjt.sp.jedit.io.BufferIORequest.run(BufferIORequest.java:105) [error] at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:193) [error] at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:160) [error] at org.gjt.sp.util.WorkThread.run(WorkThread.java:134) The file is 113k/3800 lines I am using Blackdown JDK 1.3.1 on Mandrake linux 8.1 ---------------------------------------------------------------------- >Comment By: Slava Pestov (spestov) Date: 2001-11-28 00:39 Message: Logged In: YES user_id=2280 This should no longer happen with jEdit 4.0's rewritten document model. ---------------------------------------------------------------------- Comment By: Ole Dalgaard (oledalgaard) Date: 2001-11-27 01:51 Message: Logged In: YES user_id=102572 BTW. I am using jEdit 3.2.2 Here is another exception: [error] javax.swing.text.BadLocationException: Length must be positive [error] at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:566) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.getText(JEditTextArea.java:951) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.getLineText(JEditTextArea.java:988) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.completeWord(JEditTextArea.java:3772) [error] at java.lang.reflect.Method.invoke(Native Method) [error] at bsh.Reflect.invokeMethod(Reflect.java:355) [error] at bsh.Reflect.invokeObjectMethod(Reflect.java:80) [error] at bsh.Name.invokeMethod(Name.java:687) [error] at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:53) [error] at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) [error] at bsh.BSHBlock.eval(BSHBlock.java:74) [error] at bsh.BshMethod.invokeDeclaredMethod(BshMethod.java:164) [error] at bsh.NameSpace.invokeMethod(NameSpace.java:1053) [error] at bsh.NameSpace.invokeMethod(NameSpace.java:1025) [error] at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:369) [error] at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:58) [error] at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:188) [error] at org.gjt.sp.jedit.gui.DefaultInputHandler.keyPressed(DefaultInputHandler.java:231) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:4030) [error] at java.awt.Component.processEvent(Component.java:3553) [error] at java.awt.Container.processEvent(Container.java:1164) [error] at java.awt.Component.dispatchEventImpl(Component.java:2593) [error] at java.awt.Container.dispatchEventImpl(Container.java:1213) [error] at java.awt.Component.dispatchEvent(Component.java:2497) [error] at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155) [error] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135) [error] at java.awt.Container.dispatchEventImpl(Container.java:1200) [error] at java.awt.Window.dispatchEventImpl(Window.java:914) [error] at java.awt.Component.dispatchEvent(Component.java:2497) [error] at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) [error] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131) [error] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98) [error] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [error] at java.awt.EventDispatchThread.run(EventDispatchThread.java:85) ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100588&aid=485939&group_id=588 |