gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GORA-462) Potential null dereference of serializer in CassandraSubColumn#getFieldValue()
Date Sun, 28 Feb 2016 22:13:18 GMT

     [ https://issues.apache.org/jira/browse/GORA-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lewis John McGibbney resolved GORA-462.
---------------------------------------
    Resolution: Fixed

Thanks for reporting [~yuzhihong@gmail.com]

> 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
>            Assignee: Lewis John McGibbney
>            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)

Mime
View raw message