From 831765665fbbf6b83124fdb19036d458feac747d Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Mon, 14 Dec 2015 11:35:15 -0600 Subject: [PATCH] Handling empty (null) values again --- .../src/main/java/brut/androlib/res/xml/ResXmlEncoders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncoders.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncoders.java index ded03e12..f1583f98 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncoders.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncoders.java @@ -72,7 +72,7 @@ public final class ResXmlEncoders { } public static String encodeAsXmlValue(String str) { - if (str.isEmpty()) { + if (str == null || str.isEmpty()) { return str; }