Currently the app crashes when adding an ingredient to a new recipe.
Cause: the _ingredientArrayAdapter is set to null because, being a new recipe, there is no ingredients list and therefore the adapter fails to initialise (returns null).
Fix: in onActivityResult, check if the _ingredientArrayAdapter is null and then set it. Need a decent way to do this (maybe a property?).
_ingredientArrayAdapter was set to null because it was only being initialised if an intent (i.e. a recipe was clicked) was found.
_ingredientArrayAdapter now set to new before checking for an intent.
Currently the app crashes when adding an ingredient to a new recipe. Cause: the _ingredientArrayAdapter is set to null because, being a new recipe, there is no ingredients list and therefore the adapter fails to initialise (returns null).
Fix: in onActivityResult, check if the _ingredientArrayAdapter is null and then set it. Need a decent way to do this (maybe a property?).