handle null exceptions
Merge remote-tracking branch 'origin/master'