Avoid crash if symbol returns a null name

llvm-svn: 205555
This commit is contained in:
Ed Maste 2014-04-03 19:27:39 +00:00
parent d3923aaa6e
commit 0fdeb7158e
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ ItaniumABILanguageRuntime::GetDynamicTypeAndAddress (ValueObject &in_value,
if (symbol != NULL) if (symbol != NULL)
{ {
const char *name = symbol->GetMangled().GetDemangledName().AsCString(); const char *name = symbol->GetMangled().GetDemangledName().AsCString();
if (strstr(name, vtable_demangled_prefix) == name) if (name && strstr(name, vtable_demangled_prefix) == name)
{ {
Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT)); Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
if (log) if (log)