From 13a4743e7632d34410e14837da2e2c053e64e24c Mon Sep 17 00:00:00 2001 From: "A.J. Beamon" Date: Mon, 29 Nov 2021 14:22:44 -0800 Subject: [PATCH] Check whether connRecord is null before logging it. --- fdbclient/NativeAPI.actor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdbclient/NativeAPI.actor.cpp b/fdbclient/NativeAPI.actor.cpp index 3af465c316..873cffe33c 100644 --- a/fdbclient/NativeAPI.actor.cpp +++ b/fdbclient/NativeAPI.actor.cpp @@ -1882,8 +1882,8 @@ Database Database::createDatabase(Reference connRecord TraceEvent("ConnectToDatabase", database->dbId) .detail("Version", FDB_VT_VERSION) - .detail("ClusterFile", connRecord->toString()) - .detail("ConnectionString", connRecord->getConnectionString().toString()) + .detail("ClusterFile", connRecord ? connRecord->toString() : "None") + .detail("ConnectionString", connRecord ? connRecord->getConnectionString().toString() : "None") .detail("ClientLibrary", imageInfo.fileName) .detail("Primary", networkOptions.primaryClient) .detail("Internal", internal)