Fix null reference exception on Exit

This commit is contained in:
Joshua Bahnsen 2014-01-22 21:57:19 -07:00
parent c60fef26d4
commit f6313d3008

View File

@ -75,7 +75,11 @@ public class MainActivity extends SubsonicTabActivity
if (getIntent().hasExtra(Constants.INTENT_EXTRA_NAME_EXIT))
{
setResult(Constants.RESULT_CLOSE_ALL);
getDownloadService().stopJukeboxService();
if (getDownloadService() != null)
{
getDownloadService().stopJukeboxService();
}
if (getImageLoader() != null)
{