commit | dc8cfa66f36470a2978300f7db616dc859dea0ec | [log] [tgz] |
---|---|---|
author | Ed Tanous <ed@tanous.net> | Sun Apr 07 13:37:25 2024 -0700 |
committer | Ed Tanous <ed@tanous.net> | Thu Apr 11 18:21:57 2024 +0000 |
tree | 81baa36f0cf74d2731f0a730c4b75392b47ccf93 | |
parent | 4c521c3c34162b6a5930ac1d78da3456f9b69283 [diff] [blame] |
Add nullptr check Change-Id: If511f1210cca7bd1da3a8c5152688487d3036e2f Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/src/json_html_serializer.cpp b/src/json_html_serializer.cpp index 3e0e5f8..df34e2b 100644 --- a/src/json_html_serializer.cpp +++ b/src/json_html_serializer.cpp
@@ -492,6 +492,10 @@ { out += '\"'; const std::string* ptr = val.get_ptr<const std::string*>(); + if (ptr == nullptr) + { + return; + } dumpEscaped(out, *ptr); out += '\"'; return;