Fixed null pointer in downloadindexadapter