Skip to content

Commit 80bafbc

Browse files
committed
Merge pull request #1 from mgedmin/mg-missing-revprops
Handle revisions with no revprops
2 parents 539de03 + e9f0e11 commit 80bafbc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/svn.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,12 @@ int SvnRevision::fetchRevProps()
523523
svn_string_t *svndate = (svn_string_t*)apr_hash_get(revprops, "svn:date", APR_HASH_KEY_STRING);
524524
svn_string_t *svnlog = (svn_string_t*)apr_hash_get(revprops, "svn:log", APR_HASH_KEY_STRING);
525525

526-
log = svnlog->data;
526+
if (svnlog)
527+
log = svnlog->data;
528+
else
529+
log.clear();
527530
authorident = svnauthor ? identities.value(svnauthor->data) : QByteArray();
528-
epoch = get_epoch(svndate->data);
531+
epoch = svndate ? get_epoch(svndate->data) : 0;
529532
if (authorident.isEmpty()) {
530533
if (!svnauthor || svn_string_isempty(svnauthor))
531534
authorident = "nobody <nobody@localhost>";

0 commit comments

Comments
 (0)