Skip to content

Commit

Permalink
Prevent NPE when containerInfo is null
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Oct 20, 2024
1 parent b37a8a5 commit 368a266
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,8 @@ class TaskRun implements Cloneable {

final info = containerResolver().resolveImage(this, configImage as String)
// track the key of the container used
this.containerKey = info.hashKey
if( info!=null )
this.containerKey = info.hashKey
// return the info
return info
}
Expand Down

0 comments on commit 368a266

Please sign in to comment.