From e2e7521a9b459a614b848a361bc15e3c0ec0a2de Mon Sep 17 00:00:00 2001 From: Shantanu Date: Tue, 23 Apr 2019 11:56:14 +0200 Subject: [PATCH] :bug: add null check --- lib/pages/home/modals/zoomable_photo.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pages/home/modals/zoomable_photo.dart b/lib/pages/home/modals/zoomable_photo.dart index 357304929..6f557e87b 100644 --- a/lib/pages/home/modals/zoomable_photo.dart +++ b/lib/pages/home/modals/zoomable_photo.dart @@ -194,6 +194,7 @@ class OBZoomablePhotoModalState extends State } void _updateRotationValues() { + if (startDragDetails == null) return; double screenWidth = MediaQuery.of(context).size.width; double screenHeight = MediaQuery.of(context).size.height; double screenMid = screenWidth / 2;