Fix YUV intrinsic with camera input where
frames are NULL

bug 10710716

Change-Id: I9e69a8a51ccfc15798a09760249a951561dcd544
diff --git a/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp b/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp
index 7546b38..d36729b 100644
--- a/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp
+++ b/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp
@@ -119,6 +119,10 @@
         return;
     }
     const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
+    if (pinY == NULL) {
+        ALOGE("YuvToRGB executed without data, skipping");
+        return;
+    }
 
     size_t strideY = cp->alloc->mHal.drvState.lod[0].stride;