Crash every time with new target logging is now fixed.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@169394 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index 78047bd..e236f34 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -97,7 +97,8 @@
     if (m_arch.IsValid())
     {
         LogSP log_target(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TARGET));
-        log_target->Printf("Target::Target created with architecture %s (%s)", m_arch.GetArchitectureName(), m_arch.GetTriple().getTriple().c_str());
+        if (log_target)
+            log_target->Printf("Target::Target created with architecture %s (%s)", m_arch.GetArchitectureName(), m_arch.GetTriple().getTriple().c_str());
     }
 }