X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=blobdiff_plain;f=src%2FLibCecSharp%2FCecSharpTypes.h;h=78d01a953bc7b26bfbafd0e901f7ef3d110074ab;hp=6dc324a9f191c9213b8c5c189036cdc39bd1b25f;hb=423803df43757dc745b5de829c432b7342632147;hpb=0b558f37cb9865e01e42aa617d89f3dd10362744 diff --git a/src/LibCecSharp/CecSharpTypes.h b/src/LibCecSharp/CecSharpTypes.h index 6dc324a..78d01a9 100644 --- a/src/LibCecSharp/CecSharpTypes.h +++ b/src/LibCecSharp/CecSharpTypes.h @@ -2405,7 +2405,7 @@ namespace CecSharp CecParameterType newType = (CecParameterType)data.paramType; if (newType == CecParameterType::ParameterTypeString) { - System::String ^ newData = gcnew System::String((const char *)data.paramData, 0, 128); + System::String ^ newData = gcnew System::String(data.paramData ? (const char *)data.paramData : "", 0, 128); CecParameter ^ newParam = gcnew CecParameter(newType, newData); iReturn = m_callbacks->ReceiveAlert((CecAlert)alert, newParam); }