From: Jason Molenda Date: Thu, 16 Oct 2014 01:23:06 +0000 (+0000) Subject: Check that process is non-null before calling a method in it. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aee7eb5ed19d15a1ba228779285f4189d87644fc;p=platform%2Fupstream%2Fllvm.git Check that process is non-null before calling a method in it. clang static analyzer fixit. llvm-svn: 219886 --- diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index dab7b55..871f8df 100644 --- a/lldb/source/Expression/ClangUserExpression.cpp +++ b/lldb/source/Expression/ClangUserExpression.cpp @@ -1070,7 +1070,7 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx, user_expression_sp, expr_result); - if (options.GetResultIsInternal()) + if (options.GetResultIsInternal() && process) { process->GetTarget().GetPersistentVariables().RemovePersistentVariable (expr_result); }