Set app to allow debugging
Fixed null pointer exception