RestComm / jain-slee

The World's #1 Open Source JAIN-SLEE (JSLEE) 1.1 Implementation
http://www.restcomm.com/
GNU Affero General Public License v3.0
25 stars 50 forks source link

NPE when accessing not initialized CMP #87

Closed SergeyLee closed 7 years ago

SergeyLee commented 7 years ago

An error appeared because the tracer method was added in the initial event selector method. When tracer method is executed the message prefix is constructed based on the CMP value. When CMP field is accessed there is the NPE thrown.

IES methods are called on SBB Objects in Pooled state only. Thus, accessing any SBB Entity related information, like CMPs is not allowed. Also CMP accessors are transactional, IES methods are not. Behavior will have to change, proper exception needs to be thrown in case of illegal access.

SergeyLee commented 7 years ago

Added checking on SBB entity existing for getter/setter CMP fields. See commit: e5ca6902a92d8fbdbfc94446a1b50687fd297ffa.