mirror of https://github.com/apache/maven.git
[MNG-6819] Fix also NPE in StringSearchModelInterpolator
This commit is contained in:
parent
7b3b585df3
commit
de0d576b63
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue