Spatializer: Avoid null pointer dereference

Bug: 188502620
Test: TreeHugger
Change-Id: Ib8f0a239e2271981febd9a11da20d7631a9daec3
diff --git a/services/audiopolicy/service/Spatializer.cpp b/services/audiopolicy/service/Spatializer.cpp
index 0ecfad4..0773f27 100644
--- a/services/audiopolicy/service/Spatializer.cpp
+++ b/services/audiopolicy/service/Spatializer.cpp
@@ -536,7 +536,8 @@
 }
 
 Status Spatializer::getParameter(int key, std::vector<unsigned char> *value) {
-    ALOGV("%s key %d value size %d", __func__, key, (int)value->size());
+    ALOGV("%s key %d value size %d", __func__, key,
+          (value != nullptr ? (int)value->size() : -1));
     if (value == nullptr) {
         binderStatusFromStatusT(BAD_VALUE);
     }