HHH-16151 - Fix potential NullPointerException in SqmTreePrinter for the like excape character

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2023-02-08 15:51:27 +01:00 committed by Christian Beikov
parent 5e26bf0c3e
commit 8b9d199fcf
1 changed files with 3 additions and 1 deletions

View File

@ -958,7 +958,9 @@ public class SqmTreePrinter implements SemanticQueryWalker<Object> {
() -> {
predicate.getPattern().accept( this );
predicate.getMatchExpression().accept( this );
predicate.getEscapeCharacter().accept( this );
if ( predicate.getEscapeCharacter() != null ) {
predicate.getEscapeCharacter().accept( this );
}
}
);
return null;