[
https://issues.apache.org/jira/browse/GORA-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15171179#comment-15171179
]
ASF GitHub Bot commented on GORA-462:
-------------------------------------
GitHub user lewismc opened a pull request:
https://github.com/apache/gora/pull/58
GORA-462 Potential null dereference of serializer in
CassandraSubColumn#getFieldValue()
This issue addresses https://issues.apache.org/jira/browse/GORA-462
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lewismc/gora GORA-462
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/gora/pull/58.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #58
----
commit 3977e99b1ada20355acab444d4c60ec2186dac63
Author: Lewis John McGibbney <[email protected]>
Date: 2016-02-28T20:55:29Z
GORA-462 Potential null dereference of serializer in
CassandraSubColumn#getFieldValue()
----
> Potential null dereference of serializer in CassandraSubColumn#getFieldValue()
> ------------------------------------------------------------------------------
>
> Key: GORA-462
> URL: https://issues.apache.org/jira/browse/GORA-462
> Project: Apache Gora
> Issue Type: Bug
> Affects Versions: 0.6.1
> Reporter: Ted Yu
> Priority: Minor
> Fix For: 0.7
>
>
> Here is related code:
> {code}
> ListSerializer<?> serializer =
> ListSerializer.get(fieldSchema.getElementType());
> List<?> genericArray = serializer.fromByteBuffer(byteBuffer);
> {code}
> Null check should be performed on serializer to prevent potential NPE.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)