dansiegel / Mobile.BuildTools

The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
http://mobilebuildtools.com
MIT License
228 stars 29 forks source link

Image Collector Throws NullReferenceException #116

Closed dansiegel closed 4 years ago

dansiegel commented 4 years ago

Description

The CollectImageAssetsTask encounters a Null Reference when determining the correct search paths if some conditions are not properly set.

Reproduction Steps

{
  "images": {
    "directories": [ "images" ]
  }
}

Since no conditional directories are set the conditional directories will be null and this will throw an exception.

Expected Behavior

this should collect images in the images directory without error

Actual Behavior

this encounters a NullReferenceException as there are no conditional directories.