aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental
diff options
context:
space:
mode:
Diffstat (limited to 'experimental')
-rw-r--r--experimental/skottie/SkottieJson.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/experimental/skottie/SkottieJson.cpp b/experimental/skottie/SkottieJson.cpp
index 15d86c4ef0..5d00f19f2b 100644
--- a/experimental/skottie/SkottieJson.cpp
+++ b/experimental/skottie/SkottieJson.cpp
@@ -206,8 +206,10 @@ const rapidjson::Value* ValueRef::end() const {
SkString json::ValueRef::toString() const {
#ifdef SK_DEBUG
rapidjson::StringBuffer buf;
- rapidjson::PrettyWriter<rapidjson::StringBuffer> writer(buf);
- fValue->Accept(writer);
+ if (fValue) {
+ rapidjson::PrettyWriter<rapidjson::StringBuffer> writer(buf);
+ fValue->Accept(writer);
+ }
return SkString(buf.GetString());
#else