diff --git a/src/core/blc_array.cpp b/src/core/blc_array.cpp
index 80bb53bdc6c1a6aa23fcad48d1399970db819865..3f53882602bd582de070266c8f14f0c12909ee1b 100644
--- a/src/core/blc_array.cpp
+++ b/src/core/blc_array.cpp
@@ -37,6 +37,7 @@ blc_array::blc_array(uint32_t type, uint32_t format, vector<size_t> const &lengt
 }
 
 void blc_array::def_array(uint32_t type, uint32_t format, vector<size_t> const &lengths){
+    this->data=nullptr;
     this->type=type;
     this->format=format;
     set_dims(type, lengths);