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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
