diff --git a/src/writer.cpp b/src/writer.cpp index 03d1fa413..77dcaf30e 100644 --- a/src/writer.cpp +++ b/src/writer.cpp @@ -527,7 +527,7 @@ void WriteWorker::Write() { std::atomic_fetch_or((std::atomic*) instructions, (uint32_t) TXN_COMMITTED); if (had_changes) { ExtendedEnv* extended_env = (ExtendedEnv*) mdb_env_get_userctx(env); - extended_env->notifyUserCallbacks(std::string("__committed__")); + if (extended_env) extended_env->notifyUserCallbacks(std::string("__committed__")); } }