in CommandObjectTargetStopHookList::Execute, if we don't have a target,
return before we try to dereference the target later in the function.
Currently,

% lldb -x
(lldb) target stop-hook list

crashes because of this.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140417 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index 8c07eb3..eb2ef07 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -3914,6 +3914,7 @@
         {
             result.AppendError ("invalid target\n");
             result.SetStatus (eReturnStatusFailed);
+            return result.Succeeded();
         }
         
         size_t num_hooks = target->GetNumStopHooks ();