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

Commit 862fcdbf authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 10d23597 9a8da2dc
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line 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 (requestedNode == null) {
            if (DBG) Log.d(TAG, "Didn't find a node");
            if (DBG) Log.d(TAG, "Didn't find a node");
            return null;
            return new ArrayList(0);
        } else {
        } else {
            if (!requestedNode.isCached()) {
            if (!requestedNode.isCached()) {
                if (DBG) Log.d(TAG, "node is not cached");
                if (DBG) Log.d(TAG, "node is not cached");