-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException clicking on Pin #37
Comments
What is the exception? I think you may have a pretty odd case here. The best thing would be if you create a small repro project |
It is also a NullReferenceException (Object reference not set to an instance of an object) in SetSelectedPin() while clicking on the Pin after switching the Master Detail page back and forth. Making a sample report is not that easy...it needs a MasterDetail page and some other stuff. TeamViewer session is possible if needed, but of course no debugging..;-( |
Thankfully we are on GitHub, you can fork the code and debug yourself. Just add the projects directly on remove the nuget package. |
Hi,
also I am getting an error after displaying another Master-Detail page and than switching back to the Map page (like the MapPins-Clear() exception.
After switching back to the Map page and clicking on a Pin I am getting this error (again clicking on the Pin the first time, before using the Master/Detail page) there is NO problem clicking the Pin):
at TK.CustomMap.iOSUnified.TKCustomMapRenderer.SetSelectedPin () [0x0004c] in :0
at TK.CustomMap.iOSUnified.TKCustomMapRenderer.OnMapPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00036] in :0
at (wrapper delegate-invoke) :invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00012] in :0
at TK.CustomMap.TKCustomMap.OnPropertyChanged (System.String propertyName) [0x00000] in :0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x000fb] in :0
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x0014b] in :0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x0005f] in :0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in :0
at TK.CustomMap.TKCustomMap.set_SelectedPin (TK.CustomMap.TKCustomMapPin value) [0x00000] in :0
at TK.CustomMap.iOSUnified.TKCustomMapRenderer.OnDidSelectAnnotationView (System.Object sender, MapKit.MKAnnotationViewEventArgs e) [0x00032] in :0
at MapKit.MKMapView+_MKMapViewDelegate.DidSelectAnnotationView (MapKit.MKMapView mapView, MapKit.MKAnnotationView view) [0x00014] in /Users/builder/data/lanes/2689/962a0506/source/maccore/src/build/ios/native/MapKit/MKMapView.g.cs:1797
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/2689/962a0506/source/maccore/src/UIKit/UIApplication.cs:77
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/2689/962a0506/source/maccore/src/UIKit/UIApplication.cs:61
at VagaBoo.iOS.Application.Main (System.String[] args) [0x00008] in /Users/marcoseraphin/Xamarin/Xamarin/Projekte/VagaBooMobileApp/VagaBooMobileApp (trunk)/iOS/Main.cs:17
The text was updated successfully, but these errors were encountered: