We have created a custom control and used customrender for converting it forms to native. We faced null reference exception only when using the 22.214.171.1249221-nightly version and it works fine when using 126.96.36.1992540. On further analysis we found that the null reference exception occurs in all Xamarin forms nightly version. Can any one please explain the difference between the Xamarin forms nightly version and normal xamarin forms version. We don't know what the reason for this. Could anyone please help to resolve the issue. The sample code is given below
public static IVisualElementRenderer Convert(Xamarin.Forms.View source, Xamarin.Forms.VisualElement valid)
IVisualElementRenderer render = (IVisualElementRenderer)source.GetValue(RendererProperty);
if (render == null)
render = Platform.CreateRenderer(source);
var p = PlatformProperty.GetValue(valid);
return render; }
I have also attached the image showing the issue.