Trying to fix cuke smoke. handle null pointer exception