Fixed null pointer in download indexadapter
Merge pull request #945 from Bars107/r1.9

Fixed null pointer in download indexadapter