]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
Better debug ouput
[lyx.git] / src / BufferList.cpp
index 61d62206a3f3e35e740c74f2cf25022e331d2370..f9a059b61caa801b82f935e1ba7daad7eb8d0cbd 100644 (file)
@@ -232,8 +232,10 @@ bool BufferList::exists(FileName const & fname) const
 }
 
 
-bool BufferList::isLoaded(Buffer const * b) const
+ bool BufferList::isLoaded(Buffer const * b) const
 {
+       if (!b)
+               return false;
        BufferStorage::const_iterator cit =
                find(bstore.begin(), bstore.end(), b);
        return cit != bstore.end();