Check whether connRecord is null before logging it.

This commit is contained in:
A.J. Beamon 2021-11-29 14:22:44 -08:00
parent b8bd89f88d
commit 13a4743e76
1 changed files with 2 additions and 2 deletions

View File

@ -1882,8 +1882,8 @@ Database Database::createDatabase(Reference<IClusterConnectionRecord> 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)