[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] StringIndexOutOfBoundsException when trying to set up password

From: Lance Walton <lancewalton_at_mac.com>
Date: 2006-01-31 20:20:36 CET

On 31 Jan 2006, at 13:57, Mark Phippard wrote:

> Lance Walton <lancewalton@mac.com> wrote on 01/30/2006 04:53:40 PM:
>
>> Eclipse 3.2M4
>> Subclipse 0.9.105
>>
>> I'm trying to share a project and get to the 'Enter Username and
>> Passord' dialog. When I've entered the information and click OK, the
>> dialog sticks around and I have to cancel it. Looking in the logs
>> shows the stack trace below (there are 21 characters in the
>> password):
>>
>> java.lang.StringIndexOutOfBoundsException: String index out of
>> range: 21
>> at java.lang.String.getChars(String.java:721)
>> at org.eclipse.swt.widgets.Text.getEditText(Text.java:1062)
>> at org.eclipse.swt.widgets.Text.getText(Text.java:1008)
>> at
>> org.tigris.subversion.subclipse.ui.authentication.PasswordPromptDialo
>> g.o
>
>> kPressed(PasswordPromptDialog.java:112)
>> at org.eclipse.jface.dialogs.Dialog.buttonPressed
>> (Dialog.java:460)
>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected
>> (Dialog.java:607)
>
> Here is the Subclipse code that is involved:
>
> protected void okPressed() {
> username = userText.getText().trim();
> password = passwordText.getText().trim();
> if (maySave) save = saveButton.getSelection();
> super.okPressed();
> }
>
> The error is happening on the password line. Based on our code and
> the
> stack trace, I would say that this error lies outside of our code,
> though
> it seems hard to believe. I would report it as an issue in the
> Eclipse
> Bugzilla.
>
> Mark

Ah yes - I should have read the stack trace more closely. Thanks for
your response.

Regards,

Lance

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Jan 31 20:21:43 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.