Removed NullPointerException in the execute() method resulting from the
events object.