{"action":"created","issue":{"url":"https://api.github.com/repos/robertkrimen/otto/issues/155","repository_url":"https://api.github.com/repos/robertkrimen/otto","labels_url":"https://api.github.com/repos/robertkrimen/otto/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/robertkrimen/otto/issues/155/comments","events_url":"https://api.github.com/repos/robertkrimen/otto/issues/155/events","html_url":"https://github.com/robertkrimen/otto/issues/155","id":128014450,"number":155,"title":"value.go hung on exporting array","user":{"login":"GuyBrand","id":5917810,"avatar_url":"https://avatars.githubusercontent.com/u/5917810?v=3","gravatar_id":"","url":"https://api.github.com/users/GuyBrand","html_url":"https://github.com/GuyBrand","followers_url":"https://api.github.com/users/GuyBrand/followers","following_url":"https://api.github.com/users/GuyBrand/following{/other_user}","gists_url":"https://api.github.com/users/GuyBrand/gists{/gist_id}","starred_url":"https://api.github.com/users/GuyBrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuyBrand/subscriptions","organizations_url":"https://api.github.com/users/GuyBrand/orgs","repos_url":"https://api.github.com/users/GuyBrand/repos","events_url":"https://api.github.com/users/GuyBrand/events{/privacy}","received_events_url":"https://api.github.com/users/GuyBrand/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-21T20:38:29Z","updated_at":"2016-02-18T22:44:17Z","closed_at":"2016-02-18T22:44:17Z","body":"I have an array of values (actually more of js.map) .\r\nIf a value contains nil the function hungs on :\r\n\r\n} else if state == 1 && kind != t.Kind() {\r\n\r\nI've added :\r\n\t\t\t\t} else if t == nil {\r\n\t\t\t\t\tfmt.Println(\"nil !!!\", object, index,value)\r\n} else if state == 1 && kind != t.Kind() {\r\n\r\nand now it seldom prints \"nil !!!\" , the dump of object looks like this :\r\nId,2,StoreNo,8765,CarrierId,,TotalDelivered\r\nPlease note the two commas with nothing between them .\r\n\r\n1. after this - the function does not hung if that's the right solution, please consider adding it , so I will not fork for this minor issue .\r\n2. what bothers me is that not ll situations that prints the ,, (i.e reached the t==nil) used to hung the function .\r\n3. this does not happen on older version , happen only after I refeteched the code .\r\n\r\nThanks,\r\n   Guy\r\n"},"comment":{"url":"https://api.github.com/repos/robertkrimen/otto/issues/comments/185964464","html_url":"https://github.com/robertkrimen/otto/issues/155#issuecomment-185964464","issue_url":"https://api.github.com/repos/robertkrimen/otto/issues/155","id":185964464,"user":{"login":"deoxxa","id":479055,"avatar_url":"https://avatars.githubusercontent.com/u/479055?v=3","gravatar_id":"","url":"https://api.github.com/users/deoxxa","html_url":"https://github.com/deoxxa","followers_url":"https://api.github.com/users/deoxxa/followers","following_url":"https://api.github.com/users/deoxxa/following{/other_user}","gists_url":"https://api.github.com/users/deoxxa/gists{/gist_id}","starred_url":"https://api.github.com/users/deoxxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deoxxa/subscriptions","organizations_url":"https://api.github.com/users/deoxxa/orgs","repos_url":"https://api.github.com/users/deoxxa/repos","events_url":"https://api.github.com/users/deoxxa/events{/privacy}","received_events_url":"https://api.github.com/users/deoxxa/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T22:44:17Z","updated_at":"2016-02-18T22:44:17Z","body":"I'm going to close this for now - feel free to open a new issue if you can provide a small test case."}}