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

Commit 6781ad3b authored by Joe Onorato's avatar Joe Onorato Committed by android-build-merger
Browse files

Merge "Add support for null tag names from apps." into nyc-dev am: 9a916e56

am: ef9bc11d

* commit 'ef9bc11d':
  Add support for null tag names from apps.

Change-Id: I24892af0923d536b7cca831bef954c23239e3e0b
parents 2aa0dadd ef9bc11d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1745,6 +1745,9 @@ public class BatteryStatsImpl extends BatteryStats {
        }

        public void add(String name, T obj) {
            if (name == null) {
                name = "";
            }
            mMap.put(name, obj);
            if (OVERFLOW_NAME.equals(name)) {
                mCurOverflow = obj;
@@ -1776,6 +1779,9 @@ public class BatteryStatsImpl extends BatteryStats {
        }

        public T startObject(String name) {
            if (name == null) {
                name = "";
            }
            T obj = mMap.get(name);
            if (obj != null) {
                return obj;
@@ -1825,6 +1831,9 @@ public class BatteryStatsImpl extends BatteryStats {
        }

        public T stopObject(String name) {
            if (name == null) {
                name = "";
            }
            T obj = mMap.get(name);
            if (obj != null) {
                return obj;