NPE checks
Merge branch 'master' of https://github.com/digitalabs/IBPMiddleware