perf hists browser: Fix segfault if use symbol filter in cmdline
[deliverable/linux.git] / tools / perf / ui / browsers / hists.c
index 84c8251f39a1f3ada8600286738f168eb369b8f1..81def6c3f24bf16397c8e15d26178cd4957bd86f 100644 (file)
@@ -298,6 +298,9 @@ static bool hist_browser__toggle_fold(struct hist_browser *browser)
        struct callchain_list *cl = container_of(ms, struct callchain_list, ms);
        bool has_children;
 
+       if (!he || !ms)
+               return false;
+
        if (ms == &he->ms)
                has_children = hist_entry__toggle_fold(he);
        else
This page took 0.026436 seconds and 5 git commands to generate.