mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* 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:
parent
bd934ddf3e
commit
2a4a108e60
@ -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 '"
|
||||
|
Loading…
Reference in New Issue
Block a user