2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

mousereceiver: add nullptr check

This commit is contained in:
Piyush Aggarwal
2021-07-16 05:10:25 +05:30
parent e18522f731
commit 956103b646

View File

@@ -223,6 +223,9 @@ public class MouseReceiverService extends AccessibilityService {
public boolean stopSwipe() {
Path path = new Path();
path.moveTo(getX(), getY());
if (swipeStoke == null) {
return true;
}
swipeStoke = swipeStoke.continueStroke(path, 0, 1, false);
GestureDescription.Builder builder = new GestureDescription.Builder();
builder.addStroke(swipeStoke);