mx4j/src/core/javax/management/relation RelationSupport.java,1.14,1.15

Jeremy Boynes <[email protected]> Sun, 13 Feb 2005 20:47:30 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/relation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14430/src/core/javax/management/relation

Modified Files:
	RelationSupport.java 
Log Message:
Fix for [ 1121964 ] RelationSupport roleList can be null

Index: RelationSupport.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/relation/RelationSupport.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** RelationSupport.java	13 Nov 2004 16:38:49 -0000	1.14
--- RelationSupport.java	13 Feb 2005 20:47:28 -0000	1.15
***************
*** 57,63 ****
     {
        if (relationId == null) throw new IllegalArgumentException("Illegal Null RelationId");
!       if (relationServiceObjectName == null) throw new IllegalArgumentException("Illegal Null RelatiobService ObjectName");
        if (relationTypeName == null) throw new IllegalArgumentException("Illegal Null RelationTypeName");
!       if (roleList == null) throw new IllegalArgumentException("Illegal Null RoleList");
        m_relationId = relationId;
        m_relationServiceObjectName = relationServiceObjectName;
--- 57,64 ----
     {
        if (relationId == null) throw new IllegalArgumentException("Illegal Null RelationId");
!       if (relationServiceObjectName == null) throw new IllegalArgumentException("Illegal Null RelationService ObjectName");
        if (relationTypeName == null) throw new IllegalArgumentException("Illegal Null RelationTypeName");
!       if (roleList == null) roleList = new RoleList();
! 
        m_relationId = relationId;
        m_relationServiceObjectName = relationServiceObjectName;



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click