Merge "Fix call to isCurly of null"

This commit is contained in:
jenkins-bot 2024-04-11 19:48:28 +00:00 committed by Gerrit Code Review
commit 06f3b1d5a3

View file

@ -256,7 +256,7 @@ class TexArray extends TexNode {
$state["styleargs"] = $styleArguments; $state["styleargs"] = $styleArguments;
$mmlStyle = new MMLmstyle( "", $styleArguments ); $mmlStyle = new MMLmstyle( "", $styleArguments );
$fullRenderedArray .= $mmlStyle->getStart(); $fullRenderedArray .= $mmlStyle->getStart();
if ( $next->isCurly() ) { if ( $next instanceof TexNode && $next->isCurly() ) {
// Wrap with style-tags when the next element is a Curly which determines start and end tag. // Wrap with style-tags when the next element is a Curly which determines start and end tag.
$fullRenderedArray .= $this->createMMLwithContext( $currentColor, $next, $state, $arguments ); $fullRenderedArray .= $this->createMMLwithContext( $currentColor, $next, $state, $arguments );
$fullRenderedArray .= $mmlStyle->getEnd(); $fullRenderedArray .= $mmlStyle->getEnd();