aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-25 19:38:01 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-25 19:38:01 +0000
commit3c27dcc1b6618581d868576798b64383b0ab57a7 (patch)
treedc91c619d86bbbe8dbfe7d7b7d3fed6f6d3e4e6f /src
parentEmergency crash fix, tbr=bryner (diff)
downloadbreakpad-3c27dcc1b6618581d868576798b64383b0ab57a7.tar.xz
Minidump without context crashes the processor (#153). r=bryner
http://groups.google.com/group/google-breakpad-dev/browse_thread/thread/2d221bd478bec550 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@148 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src')
-rw-r--r--src/processor/stackwalker.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/processor/stackwalker.cc b/src/processor/stackwalker.cc
index cba604e6..00eaa6af 100644
--- a/src/processor/stackwalker.cc
+++ b/src/processor/stackwalker.cc
@@ -139,6 +139,9 @@ Stackwalker* Stackwalker::StackwalkerForCPU(
const CodeModules *modules,
SymbolSupplier *supplier,
SourceLineResolverInterface *resolver) {
+ if (!context)
+ return NULL;
+
Stackwalker *cpu_stackwalker = NULL;
u_int32_t cpu = context->GetContextCPU();