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

Re: NPE in Resource History log browsing

From: Mark Phippard <MarkP_at_softlanding.com>
Date: 2005-08-17 15:34:36 CEST

Tobias Sager <moixa@gmx.ch> wrote on 08/17/2005 06:29:50 AM:

> I am using 0.9.32 with Eclipse 3.1 on Linux and get a
> NullPointerException while browsing the resource history.
> Steps to reproduce:
> - Right-Click a resource and do Team->Branch/Tag
> - Select "Specific revision in the repository"
> - Click "Show Log"
> - Select any revision message in the dialog
> Actual results:
> "An error has occurred. See error log.."
> java.lang.NullPointerException
> at
> org.tigris.subversion.subclipse.core.history.LogEntry.
> getLogEntryChangePaths(LogEntry.java:134)

This is a weird problem, you are not the first to report it. It would be
good if we could get to the bottom of it. We could check for the null,
but that wouldn't really make it any better because you still would not
see the changed paths for the revision (since they are coming back null).

The weird part is that I changed the JavaHL adapter to check for the null
and return a zero length array instead. So I am not even sure how a null
array is being passed back.


Is your repository publicly availalble so that I could try to recreate the
problem and debug it?

In your repository connection, did you define a valid root URL? It should
be the URL that points to the root of the repository. We use this URL
when retrieving the affected paths for a revision so that we can get the
revisions even across copy/moves. If you had an invalid root URL then the
svn log command would fail and we would not have the affected paths. I
still do not know why it would be a null though.

Finally, if you just want to get on with your job, you can go into
preferences for SVN and deselect "Fetch affected paths on demand". Then
it should work correctly.



Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
Received on Wed Aug 17 23:34:36 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.