You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/01 00:21:00 UTC

[jira] [Commented] (GEODE-10093) DeltaSession getAttribute method logs an NPE and returns unserialized value when called on attribute with null value

    [ https://issues.apache.org/jira/browse/GEODE-10093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499250#comment-17499250 ] 

ASF subversion and git services commented on GEODE-10093:
---------------------------------------------------------

Commit f3c043f89af8d4064ff6f8d86d02662caa85fcea in geode's branch refs/heads/feature/GEODE-10093 from Ben Ross
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=f3c043f ]

GEODE-10093 - Fixed attr issue in Delta Session


> DeltaSession getAttribute method logs an NPE and returns unserialized value when called on attribute with null value
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-10093
>                 URL: https://issues.apache.org/jira/browse/GEODE-10093
>             Project: Geode
>          Issue Type: Bug
>          Components: http session
>    Affects Versions: 1.12.7, 1.13.7, 1.14.3, 1.15.0
>            Reporter: Benjamin P Ross
>            Assignee: Benjamin P Ross
>            Priority: Major
>              Labels: needsTriage
>
> Under certain circumstances, a null value can be set for an attribute which then throws an NPE when trying to add it to the local map during a getAttribute call on the session. Prior to 1.12.2 we were responding to this by removing the entry entirely from the local map which is consistent with what the base Session class for Catalina does, but starting with 1.12.2 onward this results in an error message being displayed and the serialized value being returned rather than the unserialized value.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)