bruno 2003/07/24 05:36:41
Modified: src/blocks/woody/java/org/apache/cocoon/woody/util DomHelper.java Log: Check for missing attribute was incorrect Revision Changes Path 1.5 +1 -1 cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/util/DomHelper.java Index: DomHelper.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/util/DomHelper.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- DomHelper.java 15 Jul 2003 14:12:59 -0000 1.4 +++ DomHelper.java 24 Jul 2003 12:36:41 -0000 1.5 @@ -152,7 +152,7 @@ */ public static String getAttribute(Element element, String attributeName) throws Exception { String attrValue = element.getAttribute(attributeName); - if (attrValue == null) + if (attrValue.equals("")) throw new Exception("Missing attribute \"" + attributeName + "\" on element \"" + element.getTagName() + "\" at " + getLocation(element)); return attrValue; }