Index: runtime/vm/clustered_snapshot.cc |
diff --git a/runtime/vm/clustered_snapshot.cc b/runtime/vm/clustered_snapshot.cc |
index 32be29aed3a38f7f6b249f0b2c2016ae9a888d50..6bc3bfe896f83e310fee6d1abebcede823b2c5dd 100644 |
--- a/runtime/vm/clustered_snapshot.cc |
+++ b/runtime/vm/clustered_snapshot.cc |
@@ -5454,7 +5454,9 @@ void FullSnapshotWriter::WriteFullSnapshot() { |
num_base_objects = 0; |
} |
- WriteIsolateSnapshot(num_base_objects); |
+ if (isolate_snapshot_data_buffer() != NULL) { |
+ WriteIsolateSnapshot(num_base_objects); |
+ } |
if (FLAG_print_snapshot_sizes) { |
OS::Print("VMIsolate(CodeSize): %" Pd "\n", clustered_vm_size_); |