You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org> on 2010/05/19 08:43:57 UTC

[jira] Created: (SYNAPSE-652) Axis2MessageContext#getEndpoint Throws NPE for Non-Existing Endpoint Keys

Axis2MessageContext#getEndpoint Throws NPE for Non-Existing Endpoint Keys
-------------------------------------------------------------------------

                 Key: SYNAPSE-652
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-652
             Project: Synapse
          Issue Type: Bug
          Components: Core
            Reporter: Hiranya Jayathilaka
            Assignee: Hiranya Jayathilaka
             Fix For: 2.0


Logic is currently implemented as follows:

            Endpoint e = getConfiguration().getEndpoint(key);
            synchronized (e) {
                if (!e.isInitialized()) {
                    e.init(synEnv);
                }
            }

If 'e' is null (which is the case if the key does not exist) this throws an NPE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Resolved: (SYNAPSE-652) Axis2MessageContext#getEndpoint Throws NPE for Non-Existing Endpoint Keys

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka resolved SYNAPSE-652.
-----------------------------------------

    Resolution: Fixed

Fixed on the trunk and updated the respective test cases to cover the scenario in question

> Axis2MessageContext#getEndpoint Throws NPE for Non-Existing Endpoint Keys
> -------------------------------------------------------------------------
>
>                 Key: SYNAPSE-652
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-652
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Hiranya Jayathilaka
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.0
>
>
> Logic is currently implemented as follows:
>             Endpoint e = getConfiguration().getEndpoint(key);
>             synchronized (e) {
>                 if (!e.isInitialized()) {
>                     e.init(synEnv);
>                 }
>             }
> If 'e' is null (which is the case if the key does not exist) this throws an NPE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org