From 817e96b547cb73cb6c250808aa1a0e897240d242 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 26 Jul 2014 21:42:33 +0200 Subject: [PATCH] Yet another client==NULL --- bacula/src/dird/ua_dotcmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index c4779955a0..278ea414f7 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -1412,7 +1412,7 @@ static bool defaultscmd(UAContext *ua, const char *cmd) ua->send_msg("job=%s", job->name()); ua->send_msg("pool=%s", job->pool->name()); ua->send_msg("messages=%s", job->messages->name()); - ua->send_msg("client=%s", job->client->name()); + ua->send_msg("client=%s", job->client?job->client->name():_("*None*")); get_job_storage(&store, job, NULL); ua->send_msg("storage=%s", store.store->name()); ua->send_msg("where=%s", job->RestoreWhere?job->RestoreWhere:""); @@ -1420,7 +1420,7 @@ static bool defaultscmd(UAContext *ua, const char *cmd) ua->send_msg("type=%s", job_type_to_str(job->JobType)); ua->send_msg("fileset=%s", job->fileset->name()); ua->send_msg("enabled=%d", job->enabled); - ua->send_msg("catalog=%s", job->client->catalog->name()); + ua->send_msg("catalog=%s", job->client?job->client->catalog->name():_("*None*")); } } /* Client defaults */ -- 2.39.5