Removed possible NPE's
Merge remote-tracking branch 'origin/master'