Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356798 - OptionalClientWizardFragment suffers from obvious ArrayIndexOutOfBounds
Summary: OptionalClientWizardFragment suffers from obvious ArrayIndexOutOfBounds
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Elson Yuen CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 08:00 EDT by Rob Stryker CLA
Modified: 2011-09-06 08:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Stryker CLA 2011-09-06 08:00:33 EDT
Starting at line 94, the code is:

  if (clients != null) {
	if (clients.length > 1) {
		getTaskModel().putObject(WizardTaskUtil.TASK_CLIENTS, clients);
		getTaskModel().putObject(WizardTaskUtil.TASK_HAS_CLIENTS, new Boolean(true));
	} else
****		getTaskModel().putObject(WizardTaskUtil.TASK_CLIENT, clients[0]);
  }

In this case, if the clients is not null, but the length is zero, the *** line will throw an ArrayIndexOutOfBounds