File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -618,10 +618,10 @@ static Htop_Reaction actionBacktrace(State *st) {
618618 const Vector * allProcesses = st -> mainPanel -> super .items ;
619619
620620 Vector * processes = Vector_new (Class (Process ), false, VECTOR_DEFAULT_SIZE );
621- if (!Process_isUserlandThread (selectedProcess )) {
621+ if (selectedProcess && !Process_isUserlandThread (selectedProcess )) {
622622 for (int i = 0 ; i < Vector_size (allProcesses ); i ++ ) {
623623 Process * process = (Process * )Vector_get (allProcesses , i );
624- if (Process_getThreadGroup (process ) == Process_getThreadGroup (selectedProcess )) {
624+ if (process && Process_getThreadGroup (process ) == Process_getThreadGroup (selectedProcess )) {
625625 Vector_add (processes , process );
626626 }
627627 }
You can’t perform that action at this time.
0 commit comments