ChasakisD / XFShimmerLayout

Efficient way to add a shimmering effect to your Xamarin.Forms applications.
Apache License 2.0
53 stars 12 forks source link

OnParentSet throws NullReferenceException when _maskCanvasView is null #3

Closed saverioroncolini closed 5 years ago

saverioroncolini commented 5 years ago

OnParentSet throws NullReferenceException when _maskCanvasView is null.

I fixed it substituting

        if (Parent != null) return;

with

        if (Parent != null || _maskCanvasView is null) return;

Maybe it could be pushed in master.

Thanks for your great work

ChasakisD commented 5 years ago

Alright! Thanks for the feedback! Feel free to make a pull request

ChasakisD commented 5 years ago

Version 1.0.1 will be uploaded asap