Return-Path: Delivered-To: apmail-incubator-abdera-commits-archive@locus.apache.org Received: (qmail 44080 invoked from network); 10 Jan 2008 23:03:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2008 23:03:04 -0000 Received: (qmail 45808 invoked by uid 500); 10 Jan 2008 23:02:52 -0000 Delivered-To: apmail-incubator-abdera-commits-archive@incubator.apache.org Received: (qmail 45643 invoked by uid 500); 10 Jan 2008 23:02:52 -0000 Mailing-List: contact abdera-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-commits@incubator.apache.org Received: (qmail 45634 invoked by uid 99); 10 Jan 2008 23:02:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 15:02:52 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 23:02:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1DF601A9838; Thu, 10 Jan 2008 15:02:31 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r610974 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/AutoReleasingInputStream.java Date: Thu, 10 Jan 2008 23:02:30 -0000 To: abdera-commits@incubator.apache.org From: jmsnell@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080110230231.1DF601A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jmsnell Date: Thu Jan 10 15:02:30 2008 New Revision: 610974 URL: http://svn.apache.org/viewvc?rev=610974&view=rev Log: fix NPE caused under certain conditions Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/AutoReleasingInputStream.java Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/AutoReleasingInputStream.java URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/AutoReleasingInputStream.java?rev=610974&r1=610973&r2=610974&view=diff ============================================================================== --- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/AutoReleasingInputStream.java (original) +++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/AutoReleasingInputStream.java Thu Jan 10 15:02:30 2008 @@ -35,6 +35,7 @@ @Override public int read() throws IOException { + if (this.in == null) return -1; try { int r = super.read(); if (r == -1) { @@ -50,6 +51,7 @@ @Override public int read(byte[] b, int off, int len) throws IOException { + if (this.in == null) return -1; try { int r= super.read(b, off, len); if (r == -1) {