[
https://issues.apache.org/jira/browse/GIRAPH-884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13964125#comment-13964125
]
Hudson commented on GIRAPH-884:
-------------------------------
ABORTED: Integrated in Giraph-trunk-Commit #1434 (See
[https://builds.apache.org/job/Giraph-trunk-Commit/1434/])
GIRAPH-884 (claudio.martella:
http://git-wip-us.apache.org/repos/asf/?p=giraph.git&a=commit&h=120091511f4729441541cd764414fb52a34889b2)
* giraph-core/src/main/java/org/apache/giraph/edge/ByteArrayEdges.java
* CHANGELOG
> 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.<init>(ByteArrayInputStream.java:120)
> at
> org.apache.giraph.utils.ExtendedByteArrayDataInput.<init>(ExtendedByteArrayDataInput.java:50)
> at
> org.apache.giraph.conf.ImmutableClassesGiraphConfiguration.createExtendedDataInput(ImmutableClassesGiraphConfiguration.java:1009)
> at
> org.apache.giraph.edge.ByteArrayEdges$ByteArrayEdgeIterator.<init>(ByteArrayEdges.java:141)
> at
> org.apache.giraph.edge.ByteArrayEdges$ByteArrayEdgeIterator.<init>(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)