Skip to content

Commit

Permalink
[MWAR-439] protect against unexpected null value
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Sep 5, 2021
1 parent 7617f7e commit d78d6b5
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -646,6 +646,12 @@ else if ( getWarSourceDirectory().toPath().equals( webappDirectory.toPath() ) )
getLog().info( "Can't detect outdated resources when running inplace goal" );
outdatedResources = Collections.emptyList();
}
else if ( session.getStartTime() == null )
{
// MWAR-439: this should never happen, but has happened in some integration context...
getLog().warn( "Can't detect outdated resources because unexpected session.getStartTime() == null" );
outdatedResources = Collections.emptyList();
}
else
{
outdatedResources = new ArrayList<>();
Expand Down

0 comments on commit d78d6b5

Please sign in to comment.