mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r948407 - /mina/vysper/trunk/nbxml/src/main/java/org/apache/vysper/xml/sax/impl/XMLParser.java
Date Wed, 26 May 2010 12:22:13 GMT
Author: ngn
Date: Wed May 26 12:22:12 2010
New Revision: 948407

URL: http://svn.apache.org/viewvc?rev=948407&view=rev
Log:
Add check for null token for element names

Modified:
    mina/vysper/trunk/nbxml/src/main/java/org/apache/vysper/xml/sax/impl/XMLParser.java

Modified: mina/vysper/trunk/nbxml/src/main/java/org/apache/vysper/xml/sax/impl/XMLParser.java
URL: http://svn.apache.org/viewvc/mina/vysper/trunk/nbxml/src/main/java/org/apache/vysper/xml/sax/impl/XMLParser.java?rev=948407&r1=948406&r2=948407&view=diff
==============================================================================
--- mina/vysper/trunk/nbxml/src/main/java/org/apache/vysper/xml/sax/impl/XMLParser.java (original)
+++ mina/vysper/trunk/nbxml/src/main/java/org/apache/vysper/xml/sax/impl/XMLParser.java Wed
May 26 12:22:12 2010
@@ -163,7 +163,7 @@ public class XMLParser implements TokenL
 					return;
 				}
 			} else {
-				if(isValidName(token)) {
+				if(token != null && isValidName(token)) {
 					qname = token;
 					state = State.AFTER_START_NAME;
 				} else {



Mime
View raw message