Fixed NullPointerException catch (missing variable name).