[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-cvs
Subject:    cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs XSAttributeUseImpl.java
From:       mrglavas () apache ! org
Date:       2005-06-23 19:29:16
Message-ID: 20050623192916.19866.qmail () minotaur ! apache ! org
[Download RAW message or body]

mrglavas    2005/06/23 12:29:16

  Modified:    java/src/org/apache/xerces/impl/xs XSAttributeUseImpl.java
  Log:
  Fixing JIRA Issue #1080:
  http://issues.apache.org/jira/browse/XERCESJ-1080
  
  Fixing a possible NPE discovered by Kurt Riede.
  
  Revision  Changes    Path
  1.9       +3 -2      xml-xerces/java/src/org/apache/xerces/impl/xs/XSAttributeUseImpl.java
  
  Index: XSAttributeUseImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XSAttributeUseImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XSAttributeUseImpl.java	7 Dec 2004 18:11:27 -0000	1.8
  +++ XSAttributeUseImpl.java	23 Jun 2005 19:29:16 -0000	1.9
  @@ -106,7 +106,8 @@
           // REVISIT: SCAPI: what's the proper representation
           return getConstraintType() == XSConstants.VC_NONE ?
                  null :
  -               fDefault.actualValue.toString();
  +               ((fDefault != null && fDefault.actualValue != null) ?
  +                       fDefault.actualValue.toString() : null);
       }
   
       /**
  
  
  

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic