Added NULL control in case of void methods return type.