| Index: src/objects-printer.cc
|
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc
|
| index 690d3ec93aa83eb3a713238e291d69c1005f7e93..015d79b9c4146cdef9740e05704bb15b1f0d1fdb 100644
|
| --- a/src/objects-printer.cc
|
| +++ b/src/objects-printer.cc
|
| @@ -417,7 +417,7 @@ void DoPrintElements(std::ostream& os, Object* object) { // NOLINT
|
|
|
| void PrintFixedArrayElements(std::ostream& os, FixedArray* array) {
|
| // Print in array notation for non-sparse arrays.
|
| - Object* previous_value = array->get(0);
|
| + Object* previous_value = array->length() > 0 ? array->get(0) : nullptr;
|
| Object* value = nullptr;
|
| int previous_index = 0;
|
| int i;
|
|
|