[NUI] Picker fix a defect that could refer to null pointer
authorWoochanlee <wc0917.lee@samsung.com>
Thu, 1 Apr 2021 03:01:07 +0000 (12:01 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 1 Apr 2021 04:09:59 +0000 (13:09 +0900)
WGID: 458476

src/Tizen.NUI.Components/Controls/Picker.cs

index 08da631..bcaede8 100755 (executable)
@@ -544,7 +544,7 @@ namespace Tizen.NUI.Components
 
                 float adjustDestination = AdjustTargetPositionOfScrollAnimation(destination);
 
-                float maxPosition = ScrollAvailableArea != null ? ScrollAvailableArea.Y : ScrollAvailableArea.Y;
+                float maxPosition = ScrollAvailableArea != null ? ScrollAvailableArea.Y : 0;
                 float minPosition = ScrollAvailableArea != null ? ScrollAvailableArea.X : 0;
 
                 if (destination < -maxPosition || destination > minPosition)