diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 4cbf227901..f20078bdff 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -3305,8 +3305,12 @@ bool BufferParams::addCiteEngine(vector const & engine) string const & BufferParams::defaultBiblioStyle() const { - map bs = documentClass().defaultBiblioStyle(); - return bs[theCiteEnginesList.getTypeAsString(citeEngineType())]; + map const & bs = documentClass().defaultBiblioStyle(); + auto cit = bs.find(theCiteEnginesList.getTypeAsString(citeEngineType())); + if (cit != bs.end()) + return cit->second; + else + return empty_string(); }