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

Commit c5c23436 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Return an empty list when the requested node is not in the tree" am:...

Merge "Return an empty list when the requested node is not in the tree" am: 23e2e35a am: 0e770dd1 am: c421bc17

Change-Id: I5f905e99910b144c36c87830712c894cbf18f6a2
parents 6902b14e c421bc17
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -172,9 +172,11 @@ public class AvrcpControllerService extends ProfileService {
            }
        }

        // If we don't find a node in the tree then do not have any way to browse for the contents.
        // Return an empty list instead.
        if (requestedNode == null) {
            if (DBG) Log.d(TAG, "Didn't find a node");
            return null;
            return new ArrayList(0);
        } else {
            if (!requestedNode.isCached()) {
                if (DBG) Log.d(TAG, "node is not cached");