You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2015/06/15 10:30:00 UTC
[jira] [Closed] (SLING-4007) [POST] Prevent NPE if no Session is
available
[ https://issues.apache.org/jira/browse/SLING-4007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Sanso closed SLING-4007.
--------------------------------
> [POST] Prevent NPE if no Session is available
> ---------------------------------------------
>
> Key: SLING-4007
> URL: https://issues.apache.org/jira/browse/SLING-4007
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Post 2.3.6
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: Servlets POST 2.3.8
>
>
> If the request has no Session available, a NullPointerException is thrown on line 285 of the SlingPropertyValueHandler class since ResourceResolver.adaptTo(Session.class) returns null which is not checked. (There is a TODO comment already, sigh...)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)