{"action":"opened","issue":{"url":"https://api.github.com/repos/ryanbinns/ttwatch/issues/23","labels_url":"https://api.github.com/repos/ryanbinns/ttwatch/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ryanbinns/ttwatch/issues/23/comments","events_url":"https://api.github.com/repos/ryanbinns/ttwatch/issues/23/events","html_url":"https://github.com/ryanbinns/ttwatch/issues/23","id":69719005,"number":23,"title":"Latest ttwatch segfault in --get-formats","user":{"login":"lufik","id":5632602,"avatar_url":"https://avatars.githubusercontent.com/u/5632602?v=3","gravatar_id":"","url":"https://api.github.com/users/lufik","html_url":"https://github.com/lufik","followers_url":"https://api.github.com/users/lufik/followers","following_url":"https://api.github.com/users/lufik/following{/other_user}","gists_url":"https://api.github.com/users/lufik/gists{/gist_id}","starred_url":"https://api.github.com/users/lufik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lufik/subscriptions","organizations_url":"https://api.github.com/users/lufik/orgs","repos_url":"https://api.github.com/users/lufik/repos","events_url":"https://api.github.com/users/lufik/events{/privacy}","received_events_url":"https://api.github.com/users/lufik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T01:38:15Z","updated_at":"2015-04-21T01:38:15Z","closed_at":null,"body":"$ ./ttwatch/ttwatch --get-formats\r\nterminate called after throwing an instance of 'std::logic_error'\r\n  what():  basic_string::_S_construct null not valid\r\nAborted (core dumped)\r\n\r\nIt fails in libttwatch/libttwatch.cpp - ttwatch_enumerate_offline_formats because watch->preferences_file is NULL\r\n\r\n```c\r\nint ttwatch_enumerate_offline_formats(TTWATCH *watch, TTWATCH_FORMAT_ENUMERATOR enumerator, void *data)\r\n{\r\n    if (!watch || !enumerator)\r\n        return TTWATCH_InvalidParameter;\r\n\r\n    std::string file = watch->preferences_file;\r\n\r\n```"}}