Added null check in setScale
Merge pull request #93 from ktgw0316/issue87

Fixed NPE while zooming with mouse wheel (#87)