Fixed nullpointer error in deleteResource api
Merge pull request #702 from yamunaBQ/master

Fixed nullpointer error in deleteResource api