Skip to content

Commit

Permalink
fix ManagedParser test
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Mar 19, 2020
1 parent 94e5923 commit 8ae9d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xamarin.Android.Build.Tasks/Tasks/Aapt2Compile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void ProcessDirectory (ITaskItem item, object lockObject)
}

string fileOrDirectory = item.GetMetadata ("ResourceDirectory");
if (!isDirectory)
if (string.IsNullOrEmpty (fileOrDirectory))
fileOrDirectory = item.ItemSpec;
if (isDirectory && !Directory.EnumerateDirectories (fileOrDirectory).Any ())
return;
Expand Down

0 comments on commit 8ae9d3e

Please sign in to comment.