show null values properly

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@64 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-08-10 17:02:57 +00:00
parent 57a67412b9
commit c60df467e7

View file

@ -175,7 +175,7 @@ public final class ParserUtils
{
final int groupCount = m.groupCount();
for (int i = 1; i <= groupCount; i++)
System.out.println("group " + i + ":'" + m.group(i) + "'");
System.out.println("group " + i + ":" + (m.group(i) != null ? "'" + m.group(i) + "'" : "null"));
}
public static String urlEncode(final String str)