Work in progress for:

rdar://problem/10577182
Audit lldb API impl for places where we need to perform a NULL check

Add NULL checks for SBStream APIs.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146934 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBStream.cpp b/source/API/SBStream.cpp
index 661c0f0..b08726f 100644
--- a/source/API/SBStream.cpp
+++ b/source/API/SBStream.cpp
@@ -59,6 +59,8 @@
 void
 SBStream::Printf (const char *format, ...)
 {
+    if (!format)
+        return;
     va_list args;
     va_start (args, format);
     ref().PrintfVarArg (format, args);