Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3596C200B96 for ; Thu, 6 Oct 2016 20:51:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 34441160AE0; Thu, 6 Oct 2016 18:51:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6E045160AC5 for ; Thu, 6 Oct 2016 20:51:21 +0200 (CEST) Received: (qmail 56254 invoked by uid 500); 6 Oct 2016 18:51:20 -0000 Mailing-List: contact notifications-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list notifications@groovy.apache.org Received: (qmail 56223 invoked by uid 99); 6 Oct 2016 18:51:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2016 18:51:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6FEA42C0032 for ; Thu, 6 Oct 2016 18:51:20 +0000 (UTC) Date: Thu, 6 Oct 2016 18:51:20 +0000 (UTC) From: "Shil Sinha (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (GROOVY-7962) ObjectRange should throw an Exception intead of return null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 06 Oct 2016 18:51:22 -0000 [ https://issues.apache.org/jira/browse/GROOVY-7962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shil Sinha closed GROOVY-7962. ------------------------------ Resolution: Duplicate > ObjectRange should throw an Exception intead of return null > ------------------------------------------------------------ > > Key: GROOVY-7962 > URL: https://issues.apache.org/jira/browse/GROOVY-7962 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.4.7 > Reporter: John Tompkins > Priority: Minor > > At the end of an ObjectRange, calling next() will return null. Correct behavior would be throwing an exception since there are no more elements to return. -- This message was sent by Atlassian JIRA (v6.3.4#6332)