Fixed nullpointer occuring from implicit cast from Integer -> int -> Integer
Merge pull request #25 from skomeand/nullpointerhotfix

Fixed nullpointer occuring from implicit cast from Integer -> int -> Int...