aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/processor/stackwalker_x86.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/processor/stackwalker_x86.cc b/src/processor/stackwalker_x86.cc
index 4a7e811d..aeb18a9f 100644
--- a/src/processor/stackwalker_x86.cc
+++ b/src/processor/stackwalker_x86.cc
@@ -447,7 +447,7 @@ bool StackwalkerX86::ScanForReturnAddress(u_int32_t location_start,
if (!memory_->GetMemoryAtAddress(location, &eip))
break;
- if (modules_->GetModuleForAddress(eip) &&
+ if (modules_ && modules_->GetModuleForAddress(eip) &&
InstructionAddressSeemsValid(eip)) {
eip_found = eip;