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

Re: [Subclipse-users] 0.9.102: NPE on commit with new resources

From: Mark Phippard <markp_at_softlanding.com>
Date: 2005-12-27 15:13:14 CET

news <news@sea.gmane.org> wrote on 12/26/2005 12:23:47 PM:

> On Mon, 26 Dec 2005 08:38:32 -0500, Mark Phippard wrote:
>
> >> This happened after I added files to an existing checked-out project
and
> >> just went to the Commit dialog - after pressing CTRL-CR nothing
> >> happened. Stumped, I try to press the OK button with the mouse and
find
> >> that it's dead too? Cancel the dialog, Team->add new files, commit -
> >> works fine. Bug or feature? :)
> >
> > I will take a look when I am back at work. Is the repro-recipe just
to
> > have some unversioned files in the commit dialog?
>
> I just tried again to make sure, and yes: just trying to commit a new
file
> will reproduce the NPE.

I can't reproduce this. Can you give any more details? I have tried
having an unversioned folder, a file and a file and a folder. I have
tried it with and without modified files in the same commit. I have tried
it with JavaHL and JavaSVN. In all cases it works correctly.

Any ideas as to what would be different? Is your stack trace always the
same? The error you gave before lines up with this bit of code:

        for (int i = 0; i < selectedResources.length; i++) {

selectedResources are the items in the dialog that are checked. I tested
the case where you didn't select anything. In that case I got a
zero-length array, not a null, so even then it didn't error out.

???

Does anyone else see this problem?

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Wed Dec 28 01:13:14 2005

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.