You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Arnaud de Bossoreille de Ribou (JIRA)" <ji...@apache.org> on 2010/11/19 22:19:18 UTC

[jira] Created: (DIRMINA-812) ProtocolCodecSession.getService() returns null

ProtocolCodecSession.getService() returns null
----------------------------------------------

                 Key: DIRMINA-812
                 URL: https://issues.apache.org/jira/browse/DIRMINA-812
             Project: MINA
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.1
            Reporter: Arnaud de Bossoreille de Ribou
            Priority: Trivial


I am using ProtocolCodecSession for some unit testing. Somewhere in the code I am testing, getService() is called and it returns null. So I have to check this value to avoid the NPE.

This is because DummySession still has an IoService member which is not used any more (moved to AbstractIoSession?). Which is why I am reporting this bug, I wouldn't otherwise.

2.0.0 is not impacted.

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


[jira] Resolved: (DIRMINA-812) ProtocolCodecSession.getService() returns null

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

Emmanuel Lecharny resolved DIRMINA-812.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.2

The local service field wasn't initialized by the DummySession constructor. This has been fixed with :
http://svn.apache.org/viewvc?rev=1040096&view=rev


> ProtocolCodecSession.getService() returns null
> ----------------------------------------------
>
>                 Key: DIRMINA-812
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-812
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.1
>            Reporter: Arnaud de Bossoreille de Ribou
>            Priority: Trivial
>             Fix For: 2.0.2
>
>
> I am using ProtocolCodecSession for some unit testing. Somewhere in the code I am testing, getService() is called and it returns null. So I have to check this value to avoid the NPE.
> This is because DummySession still has an IoService member which is not used any more (moved to AbstractIoSession?). Which is why I am reporting this bug, I wouldn't otherwise.
> 2.0.0 is not impacted.

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