jakarta-ecs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-ecs/src/java/org/apache/ecs ElementAttributes.java
Date Fri, 02 May 2003 09:53:59 GMT
rdonkin     2003/05/02 02:53:59

  Modified:    src/java/org/apache/ecs ElementAttributes.java
  Log:
  Fixed bug when addAttribute is used with an int, Integer or Object as an attribute value.
Fix submitted by James C. McMaster.
  
  Revision  Changes    Path
  1.15      +6 -2      jakarta-ecs/src/java/org/apache/ecs/ElementAttributes.java
  
  Index: ElementAttributes.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ecs/src/java/org/apache/ecs/ElementAttributes.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ElementAttributes.java	27 Apr 2003 09:43:24 -0000	1.14
  +++ ElementAttributes.java	2 May 2003 09:53:58 -0000	1.15
  @@ -354,7 +354,11 @@
               }
               else
               {
  -                value = (String) getElementHashEntry().get(attr);
  +                Object valueObj = getElementHashEntry().get(attr);
  +                if (valueObj == null) {
  +                    return null;
  +                }
  +                value =  valueObj.toString();
               }
               out.append(' ');
               out.append(alterCase(attr));
  
  
  

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


Mime
View raw message