diff options
author | Elliott Hughes <enh@google.com> | 2010-05-24 16:58:07 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-05-24 21:30:23 -0700 |
commit | b1396870f92135aa140bd2b86221768dea5bc11d (patch) | |
tree | ffa579ed9406cfd0b01086959fb0515a01c6ece6 /xml/src | |
parent | 3fab88eb2cd44ee5231b05f63e20917d3db12079 (diff) | |
download | libcore-b1396870f92135aa140bd2b86221768dea5bc11d.zip libcore-b1396870f92135aa140bd2b86221768dea5bc11d.tar.gz libcore-b1396870f92135aa140bd2b86221768dea5bc11d.tar.bz2 |
Remove the luni localized exception messages.
Also fix a bug I introduced in KXmlSerializer: s.isEmpty() is not
equivalent to "".equals(s) if s is allowed to be null.
Bug: 1251121
Change-Id: I41a0a98ffb49f214041c9110f824d327af5c34e8
Diffstat (limited to 'xml/src')
-rw-r--r-- | xml/src/main/java/org/kxml2/io/KXmlSerializer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xml/src/main/java/org/kxml2/io/KXmlSerializer.java b/xml/src/main/java/org/kxml2/io/KXmlSerializer.java index c467e40..68259e0 100644 --- a/xml/src/main/java/org/kxml2/io/KXmlSerializer.java +++ b/xml/src/main/java/org/kxml2/io/KXmlSerializer.java @@ -397,7 +397,7 @@ public class KXmlSerializer implements XmlSerializer { ? "" : getPrefix(namespace, true, true); - if (namespace.isEmpty()) { + if (namespace != null && namespace.isEmpty()) { for (int i = nspCounts[depth]; i < nspCounts[depth + 1]; i++) { |