diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 44fbe04cae..e2d94f104f 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -3698,7 +3698,7 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser, #endif dprintf("stack trace:\n"); - while (status == B_OK) { + while (status == B_OK && frame.return_address != NULL) { dprintf(" %p", frame.return_address); area = vm_area_lookup(addressSpace, (addr_t)frame.return_address);