aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/processor/minidump.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc
index 0414a822..f57001a2 100644
--- a/src/processor/minidump.cc
+++ b/src/processor/minidump.cc
@@ -2935,7 +2935,8 @@ bool MinidumpAssertion::Read(u_int32_t expected_size) {
scoped_ptr<string> new_expression(UTF16ToUTF8(expression_utf16,
minidump_->swap()));
- expression_ = *new_expression;
+ if (new_expression.get())
+ expression_ = *new_expression;
}
// assertion
@@ -2947,7 +2948,8 @@ bool MinidumpAssertion::Read(u_int32_t expected_size) {
memcpy(&function_utf16[0], &assertion_.function[0], byte_length);
scoped_ptr<string> new_function(UTF16ToUTF8(function_utf16,
minidump_->swap()));
- function_ = *new_function;
+ if (new_function.get())
+ function_ = *new_function;
}
// file
@@ -2959,7 +2961,8 @@ bool MinidumpAssertion::Read(u_int32_t expected_size) {
memcpy(&file_utf16[0], &assertion_.file[0], byte_length);
scoped_ptr<string> new_file(UTF16ToUTF8(file_utf16,
minidump_->swap()));
- file_ = *new_file;
+ if (new_file.get())
+ file_ = *new_file;
}
if (minidump_->swap()) {