Skip to content

Commit

Permalink
Add null check to AppExtensionReferences on Archive task
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroa committed Aug 22, 2022
1 parent a15a176 commit 7ef7d02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msbuild/Xamarin.MacDev.Tasks/Tasks/Archive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public override bool Execute ()
if (!ShouldExecuteRemotely ())
return base.Execute ();

TaskItemFixer.ReplaceItemSpecsWithBuildServerPath (AppExtensionReferences, SessionId);
if(AppExtensionReferences != null)
TaskItemFixer.ReplaceItemSpecsWithBuildServerPath (AppExtensionReferences, SessionId);

return new TaskRunner (SessionId, BuildEngine4).RunAsync (this).Result;
}
Expand Down

0 comments on commit 7ef7d02

Please sign in to comment.