axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/deployment/wsdd WSDDDeployableItem.java
Date Wed, 22 Sep 2004 20:44:35 GMT
gawor       2004/09/22 13:44:35

  Modified:    java/src/org/apache/axis/deployment/wsdd
                        WSDDDeployableItem.java
  Log:
  prevents NPE
  
  Revision  Changes    Path
  1.53      +7 -3      ws-axis/java/src/org/apache/axis/deployment/wsdd/WSDDDeployableItem.java
  
  Index: WSDDDeployableItem.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/deployment/wsdd/WSDDDeployableItem.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- WSDDDeployableItem.java	25 Feb 2004 14:02:34 -0000	1.52
  +++ WSDDDeployableItem.java	22 Sep 2004 20:44:35 -0000	1.53
  @@ -169,8 +169,9 @@
        */ 
       public void setParameter(String name, String value)
       {
  -        if (parameters == null)
  +        if (parameters == null) {
               parameters = new LockableHashtable();
  +        }
           parameters.put(name, value);
       }
       
  @@ -179,8 +180,9 @@
        */ 
       public String getParameter(String name)
       {
  -        if (name == null)
  +        if (name == null || parameters == null) {
               return null;
  +        }
           
           return (String)parameters.get(name);
       }
  @@ -238,7 +240,9 @@
        */
       public void removeParameter(String name)
       {
  -        parameters.remove(name);
  +        if (parameters != null) {
  +            parameters.remove(name);
  +        }
       }
   
       /**
  
  
  

Mime
View raw message