jford       2003/08/03 16:45:25

  Modified:    src/java/org/apache/jetspeed/om/profile/psml
                        PsmlReference.java
  Log:
  Prevent NullPointerExceptions when path is invalid
  
  PR: Bugzilla #21595
  
  Revision  Changes    Path
  1.4       +6 -2      
jakarta-jetspeed/src/java/org/apache/jetspeed/om/profile/psml/PsmlReference.java
  
  Index: PsmlReference.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/om/profile/psml/PsmlReference.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PsmlReference.java        27 Sep 2002 16:54:22 -0000      1.3
  +++ PsmlReference.java        3 Aug 2003 23:45:25 -0000       1.4
  @@ -92,7 +92,11 @@
       public void setPath(String path)
       {
           this.path = path;
  -        ref = (PsmlPortlets)PortalToolkit.getReference(path);
  +        PsmlPortlets tempRef = (PsmlPortlets)PortalToolkit.getReference(path);
  +        if(tempRef != null)
  +        {
  +            ref = tempRef;
  +        }
       }
   
       public String getPath()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to