[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: Mark Phippard <markp_at_softlanding.com>
Date: 2006-01-31 14:57:50 CET

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

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Jan 31 15:10:25 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.