]> andersk Git - svn-all-fast-export.git/commitdiff
Don't crash on empty author
authorThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 14:57:55 +0000 (12:57 -0200)
committerThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 14:57:55 +0000 (12:57 -0200)
src/svn.cpp

index d294f541feb72f1957d28f99558fdd97c80be02f..dcbd40c66ab787ff999afde7bb6ddbb5d47b2e5c 100644 (file)
@@ -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))
This page took 0.030387 seconds and 5 git commands to generate.