mirror of https://github.com/apache/maven.git
[MNG-6819] Fix also NPE in StringSearchModelInterpolator
This commit is contained in:
parent
be3c4eb406
commit
8177d3d114
|
@ -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