mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix nullpointer issue
This commit is contained in:
parent
76eb01718d
commit
85d5e9e747
@ -466,7 +466,9 @@ Buffer::Impl::Impl(Buffer * owner, FileName const & file, bool readonly_,
|
||||
if (!cloned_buffer_) {
|
||||
temppath = createBufferTmpDir();
|
||||
lyxvc.setBuffer(owner_);
|
||||
Language const * inplang = languages.getFromCode(theApp()->inputLanguageCode());
|
||||
Language const * inplang = theApp() ?
|
||||
languages.getFromCode(theApp()->inputLanguageCode())
|
||||
: nullptr;
|
||||
if (inplang)
|
||||
params.language = inplang;
|
||||
if (use_gui)
|
||||
|
Loading…
Reference in New Issue
Block a user