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

David Griffon commented on UNOMI-785:
-------------------------------------

The fix has been done on 1_x only as the way of handling profiles has the 
behavior has been already changed on master

As an integration test is provided, no need of manual testing

> Avoid NPE when a profileID in session is not found
> --------------------------------------------------
>
>                 Key: UNOMI-785
>                 URL: https://issues.apache.org/jira/browse/UNOMI-785
>             Project: Apache Unomi
>          Issue Type: Bug
>            Reporter: David Griffon
>            Assignee: Jonathan Sinovassin-Naïk
>            Priority: Major
>
> Currently if a profileID set on a session is not found, an NPE is thrown 
> {code}
>  Internal server error null: java.lang.NullPointerException in 
> org.apache.unomi.rest.endpoints.ContextJsonEndpoint.contextJSONAsPost(ContextJsonEndpoint.java:255
> {code}
> This task to avoid the NPE in such case (ignore the profile in the session 
> document)
> Also to improve the merge profile test to check that no session remains with 
> a merged profile. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to