added null check
Merge branch 'master' of https://github.com/narendrapetkar/codebase