[MNG-6819] Fix also NPE in StringSearchModelInterpolator

This commit is contained in:
Sylwester Lachiewicz 2020-05-23 01:30:47 +02:00
parent be3c4eb406
commit 8177d3d114
1 changed files with 2 additions and 2 deletions

View File

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