Return-Path: X-Original-To: apmail-giraph-dev-archive@www.apache.org Delivered-To: apmail-giraph-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEF67109AE for ; Tue, 1 Apr 2014 16:43:21 +0000 (UTC) Received: (qmail 56786 invoked by uid 500); 1 Apr 2014 16:43:20 -0000 Delivered-To: apmail-giraph-dev-archive@giraph.apache.org Received: (qmail 56209 invoked by uid 500); 1 Apr 2014 16:43:18 -0000 Mailing-List: contact dev-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@giraph.apache.org Delivered-To: mailing list dev@giraph.apache.org Received: (qmail 56056 invoked by uid 500); 1 Apr 2014 16:43:16 -0000 Delivered-To: apmail-incubator-giraph-dev@incubator.apache.org Received: (qmail 56046 invoked by uid 99); 1 Apr 2014 16:43:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 16:43:15 +0000 Date: Tue, 1 Apr 2014 16:43:15 +0000 (UTC) From: "Craig Muchinsky (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GIRAPH-884) ByteArrayEdges.iterator() throws NPE when no edges are present MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GIRAPH-884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13956732#comment-13956732 ] Craig Muchinsky commented on GIRAPH-884: ---------------------------------------- I'm pretty sure the line number difference in ByteArrayInputStream is related to the fact that I'm using the IBM JDK. > ByteArrayEdges.iterator() throws NPE when no edges are present > -------------------------------------------------------------- > > Key: GIRAPH-884 > URL: https://issues.apache.org/jira/browse/GIRAPH-884 > Project: Giraph > Issue Type: Bug > Reporter: Craig Muchinsky > Fix For: 1.1.0 > > Attachments: GIRAPH-884.patch > > > The ByteArrayEdges.iterator() method throws the following NPE when no edges are present: > 2014-03-31 14:44:46,273 ERROR org.apache.giraph.utils.LogStacktraceCallable: Execution of callable failed > java.lang.NullPointerException > at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:120) > at org.apache.giraph.utils.ExtendedByteArrayDataInput.(ExtendedByteArrayDataInput.java:50) > at org.apache.giraph.conf.ImmutableClassesGiraphConfiguration.createExtendedDataInput(ImmutableClassesGiraphConfiguration.java:1009) > at org.apache.giraph.edge.ByteArrayEdges$ByteArrayEdgeIterator.(ByteArrayEdges.java:141) > at org.apache.giraph.edge.ByteArrayEdges$ByteArrayEdgeIterator.(ByteArrayEdges.java:138) > at org.apache.giraph.edge.ByteArrayEdges.iterator(ByteArrayEdges.java:167) > Simply checking the edgeCount before constructing a new ByteArrayEdgeIterator solves the problem. -- This message was sent by Atlassian JIRA (v6.2#6252)