Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362573

Summary: Refresh button in Server editor throws exception when server is stopped
Product: z_Archived Reporter: Kaloyan Raev <kaloyan>
Component: LibraAssignee: Kaloyan Raev <kaloyan>
Status: RESOLVED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: normal    
Priority: P3 CC: mlippert
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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)
...