diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 2e7374971c..61980cb095 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -43,7 +43,9 @@ Local obj = argT; \ size_t obj_length = obj->GetIndexedPropertiesExternalArrayDataLength(); \ char* obj_data = static_cast( \ - obj->GetIndexedPropertiesExternalArrayData()); + obj->GetIndexedPropertiesExternalArrayData()); \ + if (obj_length > 0) \ + assert(obj_data != NULL); #define SLICE_START_END(start_arg, end_arg, end_max) \ size_t start; \