AndrolibResources.escapeForResXml(): fixed bug triggered when empty string given.

This commit is contained in:
Ryszard Wiśniewski 2010-03-27 21:33:42 +01:00
parent d35120da35
commit 8094115fbc

View File

@ -279,6 +279,9 @@ final public class AndrolibResources {
}
public static String escapeForResXml(String value) {
if (value.isEmpty()) {
return value;
}
value = value.replace("'", "\\'");
value = value.replace("\n", "\\n\n");
char c = value.charAt(0);