From: Thiago Macieira Date: Mon, 24 Dec 2007 14:57:55 +0000 (-0200) Subject: Don't crash on empty author X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/453ea6b649151fee4c567b860029b455dca49cd8 Don't crash on empty author --- diff --git a/src/svn.cpp b/src/svn.cpp index d294f54..dcbd40c 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -398,7 +398,7 @@ int SvnPrivate::exportRevision(int revnum) svn_string_t *svnlog = (svn_string_t*)apr_hash_get(revprops, "svn:log", APR_HASH_KEY_STRING); QByteArray log = (char *)svnlog->data; - QByteArray authorident = identities.value((char *)svnauthor->data); + QByteArray authorident = svnauthor ? identities.value((char *)svnauthor->data) : QByteArray(); time_t epoch = get_epoch((char*)svndate->data); if (authorident.isEmpty()) { if (!svnauthor || svn_string_isempty(svnauthor))