diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp index a1c16ab84e..8d2b5af041 100644 --- a/Kernel/Syscalls/execve.cpp +++ b/Kernel/Syscalls/execve.cpp @@ -224,7 +224,7 @@ int Process::do_exec(NonnullRefPtr main_program_description, Ve // Copy of the master TLS region that we will clone for new threads // FIXME: Handle this in userspace - m_master_tls_region = master_tls_region->make_weak_ptr(); + m_master_tls_region = master_tls_region ? master_tls_region->make_weak_ptr() : nullptr; auto main_program_metadata = main_program_description->metadata();