Fixed: null pointer issue.
Merge remote-tracking branch 'upstream/dev-branch' into dev-branch

* upstream/dev-branch:
Merge pull request #362 from anilgooru/dev-branch

Bug fixes.