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

Commit ad565496 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: 862fcdbf am: ff447ffc

Change-Id: Ia8df956d43870775b9a0a26b1ce60e1fc1ad389e
parents 1e7ddc02 ff447ffc
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");