This solves a NullPointerException

Due to the auto boxing mechanism which fails when dealing with
a null