fix nullpointer exception in downsamplemanager
Merge pull request #36 from Shusshu/issue-npe-downsample

fix nullpointer exception in downsamplemanager