{"action":"closed","issue":{"url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/112","labels_url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/112/comments","events_url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/112/events","html_url":"https://github.com/aritchie/acr-xamarin-forms/issues/112","id":69886305,"number":112,"title":"Null object when calling LoadDrawPoints","user":{"login":"williamrshepherd","id":1715082,"avatar_url":"https://avatars.githubusercontent.com/u/1715082?v=3","gravatar_id":"","url":"https://api.github.com/users/williamrshepherd","html_url":"https://github.com/williamrshepherd","followers_url":"https://api.github.com/users/williamrshepherd/followers","following_url":"https://api.github.com/users/williamrshepherd/following{/other_user}","gists_url":"https://api.github.com/users/williamrshepherd/gists{/gist_id}","starred_url":"https://api.github.com/users/williamrshepherd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamrshepherd/subscriptions","organizations_url":"https://api.github.com/users/williamrshepherd/orgs","repos_url":"https://api.github.com/users/williamrshepherd/repos","events_url":"https://api.github.com/users/williamrshepherd/events{/privacy}","received_events_url":"https://api.github.com/users/williamrshepherd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-21T16:08:34Z","updated_at":"2015-05-05T20:26:33Z","closed_at":"2015-05-05T20:26:33Z","body":"Hello, \r\n\r\nI am currently using this library to support capturing signatures in a Xamarin Form project. I am getting an exception when trying to load DrawPoints form a file.\r\n\r\nStack Trace:\r\n04-20 20:13:13.475 I/MonoDroid(10377): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object\r\n04-20 20:13:13.475 I/MonoDroid(10377):   at Acr.XamForms.SignaturePad.SignaturePadView.LoadDrawPoints (IEnumerable`1 drawPoints) [0x00000] in <filename unknown>:0 \r\n04-20 20:13:13.475 I/MonoDroid(10377):   at App.Pages.DriverSignaturePage.DummyMethod (Ports.Messages.SetSignatureMessage message) [0x00011] in c:\\Users\\william.shepherd\\DocumentsApp\\Pages\\DriverSignaturePage.xaml.cs:54 \r\n\r\nTthe control is declared in a xaml file as such:\r\n\r\n<signaturePad:SignaturePadView\r\n          x:Name=\"Signature\"\r\n          StyleId=\"DriverSignature\"\r\n          HeightRequest=\"320\"\r\n          WidthRequest=\"240\"            \r\n          BackgroundColor=\"White\"              \r\n          ClearText=\"Redo\"\r\n          ClearTextColor=\"Blue\"              \r\n          SignatureLineColor=\"Black\"\r\n          StrokeColor=\"Black\"\r\n          StrokeWidth=\"4\" />\r\n\r\nAnd a method is calling LoadDrawPoints from the code-behind:\r\n\r\nprivate void DummyMethod(SetSignatureMessage message)\r\n        {\r\n            var points = message.DrawPoints;\r\n\r\n            Signature.LoadDrawPoints(points);\r\n            Signature.PromptText = \"SetSignatureMessage Called\";\r\n        }\r\n\r\nI would like to know if there is some setup that needs to take place before calling the LoadDrawPoints method. Setting the PrompText property works flawlessly (assuming I comment out the LoadDrawPoints method) and Saving the points from SignaturePad works just as well. The only problem seems to be with loading previously stored DrawPoints.\r\n\r\nAny thoughts on what could be causing this behavior?\r\n\r\n\r\n"}}