soundNames not initialized compile time error


#1

Howdy @cstewart and fellow androiders,

This might be nit picking but I ran into a compile time error in BeatBox.java within the loadSounds() method i.e. when declared soundNames isn’t initialized and its only assigned a value within the try/catch I’m guessing the compiler assumes if there is an exception the soundNames will be null in the for each loop.
I winged it with the following code snippet:-
String soundNames = new String {};
I figured its worth mentioning even though future editions will be Kotlin.

Cheers,
Mike.