Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 36879099e0b9c4543b9e26d6cc6fab0f71590d75..e8c76328b09c06e35766fe088510a1d715378046 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -2342,7 +2342,9 @@ Object* Map::GetDescriptorContents(String* sentinel_name, |
if (details.type() == ELEMENTS_TRANSITION) { |
return descriptors->GetValue(index); |
} else { |
- *safe_to_add_transition = false; |
+ if (safe_to_add_transition != NULL) { |
+ *safe_to_add_transition = false; |
+ } |
} |
} |
return NULL; |