Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Fix NullReferenceException on navigation for UWP #59

Merged
merged 1 commit into from
Apr 6, 2017
Merged

Fix NullReferenceException on navigation for UWP #59

merged 1 commit into from
Apr 6, 2017

Conversation

gtbuchanan
Copy link
Contributor

@gtbuchanan gtbuchanan commented Apr 4, 2017

Thanks for pushing out the UWP integration. Unfortunately, I encounter the following NullReferenceException during navigation from a Forms page on UWP:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetNativeControl(TNativeElement control)
   at SignaturePad.Forms.UWP.SignaturePadRenderer.OnElementChanged(ElementChangedEventArgs`1 e)
   at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement element)
   at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.Dispose(Boolean disposing)
   at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.Dispose()
   at Xamarin.Forms.Platform.UWP.VisualElementExtensions.Cleanup(VisualElement self)
   at Xamarin.Forms.Platform.UWP.PageRenderer.Dispose(Boolean disposing)
   at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.Dispose()
   at Xamarin.Forms.Platform.UWP.VisualElementExtensions.Cleanup(VisualElement self)
   at Xamarin.Forms.Platform.UWP.Platform.<SetCurrent>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()

@dnfclas
Copy link

dnfclas commented Apr 4, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@gtbuchanan gtbuchanan mentioned this pull request Apr 4, 2017
@mattleibow mattleibow merged commit 3b51135 into xamarin:master Apr 6, 2017
@mattleibow mattleibow added this to the 1.5.1 milestone Apr 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants