From c44306f7f3e60b7c9a364bba7babd9fcb092cfd2 Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Tue, 28 Aug 2012 13:59:38 +0000 Subject: Fixes by Daniel Malea. llvm-svn: 162756 --- lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/OperatingSystem/Python') diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp index cf4cac5d5ac..8de0f1058e2 100644 --- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp +++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp @@ -214,12 +214,12 @@ OperatingSystemPython::CreateRegisterContextForThread (Thread *thread) { RegisterContextSP reg_ctx_sp; if (!m_interpreter || !m_python_object || !thread) - return NULL; + return RegisterContextSP(); auto object_sp = m_interpreter->OSPlugin_QueryForRegisterContextData (m_interpreter->MakeScriptObject(m_python_object), thread->GetID()); if (!object_sp) - return NULL; + return RegisterContextSP(); PythonDataString reg_context_data((PyObject*)object_sp->GetObject()); if (reg_context_data) -- cgit v1.2.3