Removed assertion and throws runtime exception.