Fix SVACE issue 40/244340/1
authorLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Thu, 17 Sep 2020 10:29:02 +0000 (12:29 +0200)
committerLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Thu, 17 Sep 2020 10:29:02 +0000 (12:29 +0200)
- avoid null-check when dereference was already done

Change-Id: I611d6c57cde06737b69dbcadeb65ebdbe59bf3af

Oobe/Oobe.Common/Controls/ScrollableBase.cs

index 5c2059e18a7617e1c8d608fab0566633ba418672..48a6ca453ef2f832de7c853337a194a22000ec08 100644 (file)
@@ -422,7 +422,7 @@ namespace Oobe.Common.Controls
             mScrollingChild = view;
             mScrollingChild.Relayout += OnChildRelayout;
 
-            propertyNotification = mScrollingChild?.AddPropertyNotification("position", PropertyCondition.Step(1.0f));
+            propertyNotification = mScrollingChild.AddPropertyNotification("position", PropertyCondition.Step(1.0f));
             if (propertyNotification != null)
             {
                 propertyNotification.Notified += OnPropertyChanged;