mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
Make sure to not dereference a null pointer.
This commit is contained in:
parent
b8546139c8
commit
536d476d38
@ -2083,7 +2083,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
||||
Encodings::MATH_CMD | Encodings::TEXT_CMD,
|
||||
is_combining, termination);
|
||||
}
|
||||
if (c && buf->params().encoding().encodable(c)) {
|
||||
if (c && buf && buf->params().encoding().encodable(c)) {
|
||||
if (termination) {
|
||||
if (nextToken().cat() == catBegin) {
|
||||
getToken();
|
||||
|
Loading…
x
Reference in New Issue
Block a user