Fixed null pointer in download indexadapter