Null dereference check

Checking null dereference on response, if there's no response yet
Merge pull request #1 from bedirhan/patch-1

Null dereference check