{"action":"created","issue":{"url":"https://api.github.com/repos/Garteal/MPDN_Extensions/issues/19","labels_url":"https://api.github.com/repos/Garteal/MPDN_Extensions/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Garteal/MPDN_Extensions/issues/19/comments","events_url":"https://api.github.com/repos/Garteal/MPDN_Extensions/issues/19/events","html_url":"https://github.com/Garteal/MPDN_Extensions/issues/19","id":95469229,"number":19,"title":"Error Message when playing/pausing","user":{"login":"Belphemur","id":197810,"avatar_url":"https://avatars.githubusercontent.com/u/197810?v=3","gravatar_id":"","url":"https://api.github.com/users/Belphemur","html_url":"https://github.com/Belphemur","followers_url":"https://api.github.com/users/Belphemur/followers","following_url":"https://api.github.com/users/Belphemur/following{/other_user}","gists_url":"https://api.github.com/users/Belphemur/gists{/gist_id}","starred_url":"https://api.github.com/users/Belphemur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Belphemur/subscriptions","organizations_url":"https://api.github.com/users/Belphemur/orgs","repos_url":"https://api.github.com/users/Belphemur/repos","events_url":"https://api.github.com/users/Belphemur/events{/privacy}","received_events_url":"https://api.github.com/users/Belphemur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-16T16:11:36Z","updated_at":"2015-07-16T19:26:26Z","closed_at":null,"body":"Hello @Garteal,\r\n\r\nSince the merge of your branch there is an error message that appear everytime I play/pause an MKV file. I debugged it and found the culprit:\r\n\r\nhttps://github.com/Garteal/MPDN_Extensions/blob/master/Extensions/PlayerExtensions/PlaylistForm.cs#L1870-L1875\r\n\r\nThis is throwing an InvalidOperationException that you pass to the **Player.HandleException**. The problem is ... the player don't really handle it but show an Error Message (popup) which is pretty annoying.\r\n\r\nCould you make that exception as **Trace.write()** instead of **Player.HandleException** until there is a better mechanism to track and log exceptions ?"},"comment":{"url":"https://api.github.com/repos/Garteal/MPDN_Extensions/issues/comments/122059491","html_url":"https://github.com/Garteal/MPDN_Extensions/issues/19#issuecomment-122059491","issue_url":"https://api.github.com/repos/Garteal/MPDN_Extensions/issues/19","id":122059491,"user":{"login":"Belphemur","id":197810,"avatar_url":"https://avatars.githubusercontent.com/u/197810?v=3","gravatar_id":"","url":"https://api.github.com/users/Belphemur","html_url":"https://github.com/Belphemur","followers_url":"https://api.github.com/users/Belphemur/followers","following_url":"https://api.github.com/users/Belphemur/following{/other_user}","gists_url":"https://api.github.com/users/Belphemur/gists{/gist_id}","starred_url":"https://api.github.com/users/Belphemur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Belphemur/subscriptions","organizations_url":"https://api.github.com/users/Belphemur/orgs","repos_url":"https://api.github.com/users/Belphemur/repos","events_url":"https://api.github.com/users/Belphemur/events{/privacy}","received_events_url":"https://api.github.com/users/Belphemur/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T19:26:26Z","updated_at":"2015-07-16T19:26:26Z","body":"Okay I found where the error message is coming from:\r\n\r\nhttps://github.com/Garteal/MPDN_Extensions/blob/master/Extensions/PlayerExtensions/PlaylistForm.cs#L1134\r\n\r\n## Error:\r\nNullPointerException {\"Object reference not set to an instance of an object.\"}\r\n**dgv_PlayList**.*CurrentCell* is NULL\r\n\r\n## Stacktrace:\r\n```\r\n   at Mpdn.Extensions.PlayerExtensions.Playlist.PlaylistForm.HandleContextMenu() in d:\\VS\\MPDN_Extensions\\Extensions\\PlayerExtensions\\PlaylistForm.cs:line 1134\r\n   at Mpdn.Extensions.PlayerExtensions.Playlist.PlaylistForm.PlayerStateChanged(Object sender, PlayerStateEventArgs e) in d:\\VS\\MPDN_Extensions\\Extensions\\PlayerExtensions\\PlaylistForm.cs:line 1361\r\n   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)\r\n   at Mpdn.PlayerControl.OnPlayerStateChanged(PlayerState playerState, PlayerState oldState)\r\n   at MediaPlayerDotNet.MainForm.<>c__DisplayClass3d.<SetPlayerState>b__3c()\r\n   at Mpdn.Utilities.ControlHelpers.HandleAsync()\r\n```"}}