You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2003/02/21 18:03:50 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs XSAttributeDecl.java

sandygao    2003/02/21 09:03:48

  Modified:    java/src/org/apache/xerces/impl/xs XSAttributeDecl.java
  Log:
  A potential NPE: actual value in a value constraint might be null (if the value
  constraint is invalid). Use stringValue() instead.
  
  Revision  Changes    Path
  1.12      +2 -2      xml-xerces/java/src/org/apache/xerces/impl/xs/XSAttributeDecl.java
  
  Index: XSAttributeDecl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XSAttributeDecl.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XSAttributeDecl.java	14 Jan 2003 20:21:45 -0000	1.11
  +++ XSAttributeDecl.java	21 Feb 2003 17:03:48 -0000	1.12
  @@ -178,7 +178,7 @@
           // REVISIT: SCAPI: what's the proper representation
           return getConstraintType() == XSConstants.VC_NONE ?
                  null :
  -               fDefault.actualValue.toString();
  +               fDefault.stringValue();
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org