[MNG-6819] Fix also NPE in StringSearchModelInterpolator

This commit is contained in:
Sylwester Lachiewicz 2020-05-23 01:30:47 +02:00 committed by rfscholte
parent 7b3b585df3
commit de0d576b63
1 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ public class StringSearchModelInterpolator
String interpolated = ctx.interpolate( value ); String interpolated = ctx.interpolate( value );
if ( !interpolated.equals( value ) ) if ( interpolated != null && !interpolated.equals( value ) )
{ {
field.set( target, interpolated ); field.set( target, interpolated );
} }
@ -459,7 +459,7 @@ public class StringSearchModelInterpolator
{ {
String interpolated = ctx.interpolate( (String) value ); String interpolated = ctx.interpolate( (String) value );
if ( !interpolated.equals( value ) ) if ( interpolated != null && !interpolated.equals( value ) )
{ {
try try
{ {