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

Commit 8b5cd9fd authored by Yasuhiro Matsuda's avatar Yasuhiro Matsuda
Browse files

Fix a compile error with DEBUG_SERVICE enabled.

Fixes the following compile error that occurs when
DEBUG_SERVICE is set to true.

frameworks/base/services/core/java/com/android/server/am/\
ActiveServices.java:1624: error: variable si might not \
have been initialized
                        + si.intent);

Change-Id: I62851d9d9de18294b555834e042025eeca0ad5ae
parent b6fbe91a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1587,7 +1587,7 @@ public final class ActiveServices {

        while (r.pendingStarts.size() > 0) {
            Exception caughtException = null;
            ServiceRecord.StartItem si;
            ServiceRecord.StartItem si = null;
            try {
                si = r.pendingStarts.remove(0);
                if (DEBUG_SERVICE) Slog.v(TAG_SERVICE, "Sending arguments to: "