File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,8 +82,10 @@ std::optional<std::string> GetMetadataValue(const SchemaMetadataEntryData_t& ent
8282 case MetadataValueType::STRING:
8383 {
8484 auto value = *static_cast <const char **>(entry.m_pData );
85- Globals::stringsIgnoreStream << value << " \n " ;
86- return fmt::format (" \" {}\" " , value);
85+ if (value) {
86+ Globals::stringsIgnoreStream << value << " \n " ;
87+ }
88+ return fmt::format (" \" {}\" " , value ? value : " (NULL)" );
8789 }
8890 case MetadataValueType::INTEGER:
8991 return std::to_string (*static_cast <int *>(entry.m_pData ));
@@ -103,7 +105,7 @@ std::optional<std::string> GetMetadataValue(const SchemaMetadataEntryData_t& ent
103105 case MetadataValueType::SEND_PROXY_RECIPIENTS_FILTER:
104106 {
105107 auto & value = *static_cast <CSchemaSendProxyRecipientsFilter*>(entry.m_pData );
106- return fmt::format (" \" {}\" " , value.m_pszName );
108+ return fmt::format (" \" {}\" " , value.m_pszName ? value. m_pszName : " (NULL) " );
107109 }
108110 case MetadataValueType::VARNAME:
109111 {
You can’t perform that action at this time.
0 commit comments