giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Muchinsky (JIRA)" <>
Subject [jira] [Created] (GIRAPH-884) ByteArrayEdges.iterator() throws NPE when no edges are present
Date Mon, 31 Mar 2014 19:26:14 GMT
Craig Muchinsky created GIRAPH-884:

             Summary: ByteArrayEdges.iterator() throws NPE when no edges are present
                 Key: GIRAPH-884
             Project: Giraph
          Issue Type: Bug
            Reporter: Craig Muchinsky
         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
	at org.apache.giraph.utils.ExtendedByteArrayDataInput.<init>(
	at org.apache.giraph.conf.ImmutableClassesGiraphConfiguration.createExtendedDataInput(
	at org.apache.giraph.edge.ByteArrayEdges$ByteArrayEdgeIterator.<init>(
	at org.apache.giraph.edge.ByteArrayEdges$ByteArrayEdgeIterator.<init>(
	at org.apache.giraph.edge.ByteArrayEdges.iterator(

Simply checking the edgeCount before constructing a new ByteArrayEdgeIterator solves the problem.

This message was sent by Atlassian JIRA

View raw message