We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f2ff3 commit 042b2a6Copy full SHA for 042b2a6
lldb/source/Plugins/Language/CPlusPlus/LibStdcpp.cpp
@@ -379,7 +379,7 @@ LibStdcppSharedPtrSyntheticFrontEnd::CalculateNumChildren() {
379
380
lldb::ValueObjectSP
381
LibStdcppSharedPtrSyntheticFrontEnd::GetChildAtIndex(uint32_t idx) {
382
- if (idx == 0)
+ if (idx == 0 && m_ptr_obj)
383
return m_ptr_obj->GetSP();
384
if (idx == 1) {
385
if (m_ptr_obj && !m_obj_obj) {
0 commit comments