sboag 99/11/30 22:20:43
Modified: src/org/apache/xalan/xslt Stylesheet.java
Log:
Fixed null pointer exception with imported stylesheets and named attribute
sets.
Revision Changes Path
1.10 +1 -1 xml-xalan/src/org/apache/xalan/xslt/Stylesheet.java
Index: Stylesheet.java
===================================================================
RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/Stylesheet.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Stylesheet.java 1999/11/30 22:30:55 1.9
+++ Stylesheet.java 1999/12/01 06:20:43 1.10
@@ -1565,7 +1565,7 @@
for(int i = 0; i < nNames; i++)
{
QName qname = attributeSetsNames[i];
- int nSets = m_attributeSets.size();
+ int nSets = (null != m_attributeSets) ? m_attributeSets.size() : 0;
for(int k = 0; k < nSets; k++)
{
ElemAttributeSet attrSet =
(ElemAttributeSet)m_attributeSets.elementAt(k);