check if ring is null in executeUpdate