]> git.lyx.org Git - features.git/commitdiff
Add comment about coverity #102061.
authorRichard Heck <rgheck@lyx.org>
Sun, 12 Jun 2016 04:22:09 +0000 (00:22 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 12 Jun 2016 04:22:09 +0000 (00:22 -0400)
src/frontends/qt4/GuiApplication.cpp

index 022418fc159bf43bbe49256db3cf6afeb568c68e..4d9035ef16b6f49c3402df4afaf3a9d6aaeae3e1 100644 (file)
@@ -1464,6 +1464,8 @@ void GuiApplication::gotoBookmark(unsigned int idx, bool openFile,
        // if the current buffer is not that one, switch to it.
        BufferView * doc_bv = current_view_ ?
                current_view_->documentBufferView() : 0;
+       // FIXME It's possible that doc_bv is null!!
+       // See coverity #102061
        Cursor const old = doc_bv->cursor();
        if (!doc_bv || doc_bv->buffer().fileName() != tmp.filename) {
                if (switchToBuffer) {