[ 
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.

Reply via email to