Don't crash due to not checking log shared pointer.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146126 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangASTSource.cpp b/source/Expression/ClangASTSource.cpp
index bae92cd..552c545 100644
--- a/source/Expression/ClangASTSource.cpp
+++ b/source/Expression/ClangASTSource.cpp
@@ -624,7 +624,8 @@
             
             if (!copied_decl)
             {
-                log->Printf("  CAS::FOMD[%d] couldn't import method from symbols", current_id);
+                if (log)
+                    log->Printf("  CAS::FOMD[%d] couldn't import method from symbols", current_id);
                 continue;
             }