place null testing before first use
Merge pull request #1067 from bigsfr/master

place null testing before first use
Merge remote-tracking branch 'MasDennis/master'
Merge branch 'master' of https://github.com/chocomega/Rajawali.git