Fixed null pointer in downloadIndexThread
Merge pull request #877 from Bars107/downloads

Fixed null pointer in downloadIndexThread