added user input nil catcher