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

Re: [Subclipse-users] NPE during synchronizing

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-02-15 20:05:32 CET

Jörg von Frantzius <joerg.von.frantzius@artnology.com> wrote on 02/15/2006
01:59:14 PM:

> Mark Phippard schrieb:
> sometimes I'm seeing this NPE during synchronization:
>
> Error 2006-02-15 19:47:49.543 An internal error occurred during:
> "Synchronizing SVN (/sgw.backend/src)".
> java.lang.NullPointerException
> at
> org.tigris.subversion.subclipse.core.client.StatusAndInfoCommand.
> fetchInfo(StatusAndInfoCommand.java:159)
> at
>
>
> Are you on an old version of Subclipse? As of the latest version it
> should not be executing that fetchInfo() method as the status command
now
> returns all of the information we need to do a Synchronize.
>
> That's with Subclipse version 0.9.106, Eclipse says (which itself is 3.2
M4).

It should be short-circuiting out of the ensureStatusContainsRemoteData()
method before it needs to call fetchInfo(). Are you running on a
non-Windows platform but using JavaHL? There was a bug in Subversion that
was fixed prior to the 1.3.0 GA where it returned null information for
some of the info we need. So we left a check in that if that information
is null we will still call fetchInfo(). However, if you are using JavaSVN
or JavaHL from 1.3.0 this should not be happening (unless some new bug has
entered one of those adapters causing the info to be null again).

fetchInfo() would get the NPE if the URL for the item was null. We get
this out of the working copy and it also should not return a null. Would
probably happen only if there was a null root URL for the repository which
should not be possible.

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 Wed Feb 15 20:05:57 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.