X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcollection.h;h=91f8f070cefbfabe0e0f5a878743fd9eb4e38f00;hb=534a9fb8c1e8ee6c40be90cb43c89bafb2cfbb24;hp=021b714a934e05dbb190dd4b2b473f1607b160e6;hpb=4931b4867258d1d2c20bad7ec24dfe4b99646aa1;p=libs%2Fdatafile.git diff --git a/source/collection.h b/source/collection.h index 021b714..91f8f07 100644 --- a/source/collection.h +++ b/source/collection.h @@ -341,7 +341,8 @@ public: if(!creat) throw std::runtime_error("no creator"); T *obj = creat->create(coll, name); - store->store(coll, name, obj); + if(obj) + store->store(coll, name, obj); } };