Alexandre Pique <>


r861844 | dlr | 2006-10-04 23:50:22 +0000 (Wed, 04 Oct 2006)

JavaHL: Fix an initialization error in Path.cpp's error handling code.
This avoids a hard JVM crash when the empty string is passed into the
checkout() routine for the destination path.

Without this change Path::m_error_occured is non-NULL, but pointing to
random memory.  This results in a SEGV during pool cleanup if it's
ever passed on to svn_error_clear() (as happened in the
SVNClient::checkout() method).

* subversion/bindings/java/javahl/native/Path.cpp
  (Path::init): Initialize the "m_error_occured" instance field to
   NULL when the PI_PATH parameter is the empty string.

Found by: Alexandre Pique <>