You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Blair Zajac <bl...@orcaware.com> on 2008/06/13 00:19:58 UTC
Re: svn commit: r31719 - in trunk/subversion/bindings/javahl: src/org/tigris/subversion/javahl
tests/org/tigris/subversion/javahl
markphip@tigris.org wrote:
> Author: markphip
> Date: Thu Jun 12 17:06:34 2008
> New Revision: 31719
>
> Log:
> JavaHL: Fix potential ArrayIndexOutOfBoundsException in
> singleStatus method. Happens when method is called on
> a non-existent path within the working copy.
I would just add to the javadoc that this method may return null if the path
being status'ed doesn't exist. Otherwise, I'm going to vote +1 on this.
Blair
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn commit: r31719 - in trunk/subversion/bindings/javahl: src/org/tigris/subversion/javahl tests/org/tigris/subversion/javahl
Posted by Mark Phippard <ma...@gmail.com>.
On Thu, Jun 12, 2008 at 8:19 PM, Blair Zajac <bl...@orcaware.com> wrote:
> markphip@tigris.org wrote:
>>
>> Author: markphip
>> Date: Thu Jun 12 17:06:34 2008
>> New Revision: 31719
>>
>> Log:
>> JavaHL: Fix potential ArrayIndexOutOfBoundsException in
>> singleStatus method. Happens when method is called on
>> a non-existent path within the working copy.
>
> I would just add to the javadoc that this method may return null if the path
> being status'ed doesn't exist. Otherwise, I'm going to vote +1 on this.
I can do that, but the method is deprecated and this actually just
restores the method to what it returned prior to 1.5. Basically the
new code that does callbacks creates a situation where we can return
an empty array instead of a null. We just did not check for it.
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org