subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1499327 - /subversion/trunk/subversion/bindings/javahl/native/RemoteSession.cpp
Date Wed, 03 Jul 2013 11:28:48 GMT
Author: brane
Date: Wed Jul  3 11:28:48 2013
New Revision: 1499327

URL: http://svn.apache.org/r1499327
Log:
* subversion/bindings/javahl/native/RemoteSession.cpp (fill_dirents):
   Don't crash if the dirents hash is NULL.

Modified:
    subversion/trunk/subversion/bindings/javahl/native/RemoteSession.cpp

Modified: subversion/trunk/subversion/bindings/javahl/native/RemoteSession.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/native/RemoteSession.cpp?rev=1499327&r1=1499326&r2=1499327&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/native/RemoteSession.cpp (original)
+++ subversion/trunk/subversion/bindings/javahl/native/RemoteSession.cpp Wed Jul  3 11:28:48
2013
@@ -524,6 +524,9 @@ void fill_dirents(const char* base_url, 
                   jobject jdirents, apr_hash_t* dirents,
                   apr_pool_t* scratch_pool)
 {
+  if (!dirents)
+    return;
+
   base_url = apr_pstrcat(scratch_pool, base_url, "/", base_relpath, NULL);
   base_url = svn_uri_canonicalize(base_url, scratch_pool);
   svn_stringbuf_t* abs_path = svn_stringbuf_create(base_url, scratch_pool);



Mime
View raw message