Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362573 - Refresh button in Server editor throws exception when server is stopped
Summary: Refresh button in Server editor throws exception when server is stopped
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Libra (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 11:20 EDT by Kaloyan Raev CLA
Modified: 2022-02-24 11:24 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2011-11-01 11:20:22 EDT
Steps to reproduce:
1. Configure an OSGi server adapter, but don't start it. 
2. Open the server editor. 
3. Switch to the Console editor part. 
4. Click the 'Refresh' button. 

The following exception is thrown:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at org.eclipse.libra.framework.editor.ui.internal.SearchTextHistory.current(SearchTextHistory.java:76)
	at org.eclipse.libra.framework.editor.ui.console.ServerConsoleEditorPage$6.run(ServerConsoleEditorPage.java:198)
...