Index: subversion/libsvn_repos/load.c
===================================================================
--- subversion/libsvn_repos/load.c	(revision 27515)
+++ subversion/libsvn_repos/load.c	(working copy)
@@ -337,8 +337,12 @@
                 {
                   struct node_baton *nb = record_baton;
                   struct revision_baton *rb = nb->rb;
-                  const char *parent_dir = rb->pb->parent_dir;
+                  const char *parent_dir = NULL;
 
+                  /* Check if we have a non NULL revision baton */
+                  if (rb)
+                    parent_dir = rb->pb->parent_dir;
+
                   if (parent_dir && strcmp(keybuf, SVN_PROP_MERGE_INFO) == 0)
                     {
                       /* Prefix the merge source paths with PARENT_DIR. */


