diff --git a/src/Type/Collection.cpp b/src/Type/Collection.cpp index fcbb89e..233708c 100644 --- a/src/Type/Collection.cpp +++ b/src/Type/Collection.cpp @@ -127,6 +127,9 @@ namespace hgl */ bool Collection::Insert(const uint64 offset,const void *element) { + if(!element) + return(false); + if(data_count==0) return Add(element);