Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72c6137a authored by Tor Norbye's avatar Tor Norbye
Browse files

Handle empty flag attributes, such as gravity=""

Without this, an empty string will be passed into
XmlUtils.convertValueToInt, which throws an
index out of range exception.

Change-Id: Ibd1a140e207653b205852087f33ccb87fbbb9bbc
parent 48f7cfb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ public final class BridgeTypedArray extends TypedArray {
            return defValue;
        }

        if (s == null) {
        if (s == null || s.length() == 0) {
            return defValue;
        }