Author: vsiveton Date: Thu May 28 23:54:08 2009 New Revision: 779800 URL: http://svn.apache.org/viewvc?rev=779800&view=rev Log: o more check
Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java?rev=779800&r1=779799&r2=779800&view=diff ============================================================================== --- maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java (original) +++ maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/AbstractXmlParser.java Thu May 28 23:54:08 2009 @@ -1230,9 +1230,9 @@ { // throw new XmlPullParserException("not allowed"); - if ( !replacementText.startsWith( "&#" ) ) + if ( !replacementText.startsWith( "&#" ) && this.entityName != null && replacementText.length() > 1 ) { - String tmp = new String( replacementText ).substring( 1, replacementText.length() - 1 ); + String tmp = replacementText.substring( 1, replacementText.length() - 1 ); for ( int i = 0; i < this.entityName.length; i++ ) { if ( this.entityName[i] != null && this.entityName[i].equals( tmp ) )