* Buffer.cpp:

- prevent potential null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28023 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-01-07 11:07:48 +00:00
parent bd934ddf3e
commit 2a4a108e60

View File

@ -592,7 +592,7 @@ bool Buffer::readDocument(Lexer & lex)
checkAndLoadLyXFile(master_file, true);
// set master as master buffer, but only if we are
// a real child
if (master->isChild(this))
if (master && master->isChild(this))
d->parent_buffer = master;
else
LYXERR0("The master '"