mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +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);
|
checkAndLoadLyXFile(master_file, true);
|
||||||
// set master as master buffer, but only if we are
|
// set master as master buffer, but only if we are
|
||||||
// a real child
|
// a real child
|
||||||
if (master->isChild(this))
|
if (master && master->isChild(this))
|
||||||
d->parent_buffer = master;
|
d->parent_buffer = master;
|
||||||
else
|
else
|
||||||
LYXERR0("The master '"
|
LYXERR0("The master '"
|
||||||
|
Loading…
Reference in New Issue
Block a user