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

Commit 58bb72b6 authored by lijilou's avatar lijilou Committed by Winson Chung
Browse files

DragState: fix the NPE problem.

The clipdata value may be null.

Test: OEM monkey test
Flag: EXEMPT bugfix
Fixes: 379592739
Change-Id: I14e33e902b14f1dd06e3220aad493feee4068456
parent 471e6c9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -528,7 +528,7 @@ class DragState {
            }
            // Only allow the extras to be dispatched to a global-intercepting drag target
            ClipData data = null;
            if (interceptsGlobalDrag) {
            if (interceptsGlobalDrag && mData != null) {
                data = mData.copyForTransferWithActivityInfo();
                PersistableBundle extras = data.getDescription().getExtras() != null
                        ? data.getDescription().getExtras()