Skip to content

Commit

Permalink
Bunch of null refs
Browse files Browse the repository at this point in the history
  • Loading branch information
m-sadegh-sh committed Dec 28, 2023
1 parent 8211d28 commit ab9296a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Core/UI.Core/View.Binding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static TView Bind<TView, TSource, TProperty>(this TView @this, Func<TView

partial class View
{
ConcurrentList<DynamicPropertyBinding> DynamicBindings = new();
readonly ConcurrentList<DynamicPropertyBinding> DynamicBindings = new();

internal void RegisterPropertyBinding(DynamicPropertyBinding definition)
{
Expand Down
2 changes: 1 addition & 1 deletion Core/UI.Core/ViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static async Task<TView> MoveTo<TView>(this TView @this, View newParent,
if (@this.IsRendered())
UIWorkBatch.Publish(@this, "[REMOVE]", null);

@this.parent.AllChildren?.Remove(@this);
@this.parent?.AllChildren?.Remove(@this);
await newParent.AddAt(at, @this);

return @this;
Expand Down
2 changes: 1 addition & 1 deletion Zebble/UWP/Controls/UWPScrollView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ async Task Snap(int index)
void AutoMoveTo(double? horizontal = null, double? vertical = null, bool animate = true)
{
IsMovingByCode = true;
Result.ChangeView(horizontal, verticalOffset: vertical, zoomFactor: null, disableAnimation: !animate);
Result?.ChangeView(horizontal, verticalOffset: vertical, zoomFactor: null, disableAnimation: !animate);
}

public void Dispose()
Expand Down
2 changes: 1 addition & 1 deletion Zebble/Zebble.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RootNamespace>Zebble</RootNamespace>
<PackageId>Zebble</PackageId>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<Version>4.6.119.0</Version>
<Version>4.6.120.0</Version>
<PackOnBuild>true</PackOnBuild>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
Expand Down

0 comments on commit ab9296a

Please sign in to comment.