add NPE check
Merge branch 'master' of https://github.com/ramuenugurthi/crm-master.git