fix a null pointer exception during file downloading
Merge pull request #135 from box/nullpointer

fix a null pointer exception during file downloading