Ticket #55 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

\newcommand template throws an exception after skipping the optional parameters

Reported by: stefan Owned by: stefan
Priority: major Milestone: 0.2
Component: editor Version: 0.1
Keywords: Cc: rena@…
Blocking: Blocked By:

Description

Here is the exception:

Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -3
        at java.lang.String.substring(String.java:1937)
        at sce.component.SCEDocument.getText(SCEDocument.java:191)
        at sce.codehelper.CodeHelperPane.editTemplate(CodeHelperPane.java:307)
        at sce.codehelper.CodeHelperPane.keyPressed(CodeHelperPane.java:406)
        at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:233)
        at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:232)
        at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:232)
        at java.awt.Component.processKeyEvent(Component.java:6221)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2801)
        at java.awt.Component.processEvent(Component.java:6040)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
        at java.awt.Component.dispatchEventImpl(Component.java:4502)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Window.dispatchEventImpl(Window.java:2475)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        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)

Attachments

Change History

Changed 3 years ago by stefan

  • status changed from new to assigned
  • owner set to stefan

Changed 3 years ago by stefan

  • status changed from assigned to closed
  • resolution set to fixed

fixed temporary by removing the second optional parameter

Add/Change #55 (\newcommand template throws an exception after skipping the optional parameters)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.