You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "David Griffon (Jira)" <ji...@apache.org> on 2023/07/17 15:54:00 UTC

[jira] [Created] (UNOMI-785) Avoid NPE when a profileID in session is not found

David Griffon created UNOMI-785:
-----------------------------------

             Summary: 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


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)