added null check before checking restult state
added null check before checking restult state

codeine-cd/codeine,codeine-cd/codeine,codeine-cd/codeine,ItamarBenjamin/codeine,codeine-cd/codeine,ItamarBenjamin/codeine,ItamarBenjamin/codeine,ItamarBenjamin/codeine