sandygao 2004/12/08 18:40:00 Modified: java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java Log: Fixing a potential NPE. Revision Changes Path 1.62 +4 -2 xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java Index: XSSimpleTypeDecl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- XSSimpleTypeDecl.java 7 Dec 2004 15:17:50 -0000 1.61 +++ XSSimpleTypeDecl.java 9 Dec 2004 02:40:00 -0000 1.62 @@ -2113,7 +2113,9 @@ public ShortList getEnumerationTypeList() { if (fEnumerationTypeList == null) { - fEnumerationTypeList = new ShortListImpl (fEnumerationType, fEnumerationType.length); + if (fEnumerationType == null) + return null; + fEnumerationTypeList = new ShortListImpl (fEnumerationType, fEnumerationType.length); } return fEnumerationTypeList; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]