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

Commit 54afd007 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in ClipboarService."

parents f2ecbbc3 fe4d1e87
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -404,10 +404,12 @@ public class ClipboardService extends SystemService {
            return;
        }
        clipboard.primaryClip = clip;
        final ClipDescription description = clipboard.primaryClip.getDescription();
        if (clip != null) {
            final ClipDescription description = clip.getDescription();
            if (description != null) {
                description.setTimestamp(SystemClock.elapsedRealtime());
            }
        }
        final long ident = Binder.clearCallingIdentity();
        final int n = clipboard.primaryClipListeners.beginBroadcast();
        try {