File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Xamarin.Android.Build.Tasks/Tasks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public class Aapt2Compile : Aapt2 {
3737
3838 protected override int GetRequiredDaemonInstances ( )
3939 {
40- return Math . Min ( ( ResourcesToCompile ?? ResourceDirectories ) . Length , DaemonMaxInstanceCount ) ;
40+ return Math . Min ( ( ResourcesToCompile ?? ResourceDirectories ) ? . Length ?? 1 , DaemonMaxInstanceCount ) ;
4141 }
4242
4343 public async override System . Threading . Tasks . Task RunTaskAsync ( )
@@ -67,7 +67,7 @@ void ProcessDirectory (ITaskItem item, object lockObject)
6767 if ( string . IsNullOrEmpty ( fileOrDirectory ) || ! isDirectory )
6868 fileOrDirectory = item . ItemSpec ;
6969 if ( isDirectory && ! Directory . Exists ( fileOrDirectory ) ) {
70- LogWarning ( $ "Ignoring '{ fileOrDirectory } ' as it does not exist!") ;
70+ LogWarning ( $ "Ignoring directory '{ fileOrDirectory } ' as it does not exist!") ;
7171 return ;
7272 }
7373 if ( isDirectory && ! Directory . EnumerateDirectories ( fileOrDirectory ) . Any ( ) )
You can’t perform that action at this time.
0 commit comments