portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/om/dbregistry PortletDbEntryPeer.java
Date Thu, 22 Jul 2004 02:17:00 GMT
jford       2004/07/21 19:17:00

  Modified:    src/java/org/apache/jetspeed/om/dbregistry
                        PortletDbEntryPeer.java
  Log:
  Only create reference if not null
  
  Revision  Changes    Path
  1.3       +8 -4      jakarta-jetspeed/src/java/org/apache/jetspeed/om/dbregistry/PortletDbEntryPeer.java
  
  Index: PortletDbEntryPeer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/om/dbregistry/PortletDbEntryPeer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortletDbEntryPeer.java	21 Jul 2004 18:55:09 -0000	1.2
  +++ PortletDbEntryPeer.java	22 Jul 2004 02:17:00 -0000	1.3
  @@ -99,9 +99,13 @@
           pe.setMetaInfo(meta);                
           pe.setName(pde.getName());            
           pe.setParent(pde.getParent());
  -        SecurityReference ref = new BaseSecurityReference();
  -        ref.setParent(pde.getSecurityRef());
  -        pe.setSecurityRef(ref);
  +        if(pde.getSecurityRef() != null)
  +        {
  +            SecurityReference ref = new BaseSecurityReference();
  +            ref.setParent(pde.getSecurityRef());
  +            pe.setSecurityRef(ref);
  +        }
  +
           pe.setTitle(pde.getTitle());
           pe.setType(pde.getType());
           pe.setURL(pde.getURL());
  
  
  

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


Mime
View raw message