{"action":"created","issue":{"url":"https://api.github.com/repos/thesecretlab/YarnSpinner/issues/41","repository_url":"https://api.github.com/repos/thesecretlab/YarnSpinner","labels_url":"https://api.github.com/repos/thesecretlab/YarnSpinner/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/thesecretlab/YarnSpinner/issues/41/comments","events_url":"https://api.github.com/repos/thesecretlab/YarnSpinner/issues/41/events","html_url":"https://github.com/thesecretlab/YarnSpinner/issues/41","id":151169717,"number":41,"title":"Error in DialogueRunner when there are no 'sourceTexts'","user":{"login":"Delament","id":271945,"avatar_url":"https://avatars.githubusercontent.com/u/271945?v=3","gravatar_id":"","url":"https://api.github.com/users/Delament","html_url":"https://github.com/Delament","followers_url":"https://api.github.com/users/Delament/followers","following_url":"https://api.github.com/users/Delament/following{/other_user}","gists_url":"https://api.github.com/users/Delament/gists{/gist_id}","starred_url":"https://api.github.com/users/Delament/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delament/subscriptions","organizations_url":"https://api.github.com/users/Delament/orgs","repos_url":"https://api.github.com/users/Delament/repos","events_url":"https://api.github.com/users/Delament/events{/privacy}","received_events_url":"https://api.github.com/users/Delament/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-26T15:44:06Z","updated_at":"2016-04-27T10:19:19Z","closed_at":"2016-04-27T10:19:18Z","body":"I'm adding a DialogueRunner to my game at runtime, and as such, when it hits Start, there aren't any text assets in the sourceText array (they're added later when the NPCs are loaded). The code throws an error when trying to iterate over the array as it's null. I fixed this with a null check before the iteration loop, but I thought I'd point it out here.\r\n\r\nA similar thing happens with the switch statement in the example variable storage (the defaultVariables array)."},"comment":{"url":"https://api.github.com/repos/thesecretlab/YarnSpinner/issues/comments/215041060","html_url":"https://github.com/thesecretlab/YarnSpinner/issues/41#issuecomment-215041060","issue_url":"https://api.github.com/repos/thesecretlab/YarnSpinner/issues/41","id":215041060,"user":{"login":"desplesda","id":901768,"avatar_url":"https://avatars.githubusercontent.com/u/901768?v=3","gravatar_id":"","url":"https://api.github.com/users/desplesda","html_url":"https://github.com/desplesda","followers_url":"https://api.github.com/users/desplesda/followers","following_url":"https://api.github.com/users/desplesda/following{/other_user}","gists_url":"https://api.github.com/users/desplesda/gists{/gist_id}","starred_url":"https://api.github.com/users/desplesda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desplesda/subscriptions","organizations_url":"https://api.github.com/users/desplesda/orgs","repos_url":"https://api.github.com/users/desplesda/repos","events_url":"https://api.github.com/users/desplesda/events{/privacy}","received_events_url":"https://api.github.com/users/desplesda/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T10:19:18Z","updated_at":"2016-04-27T10:19:18Z","body":"(Fixed thanks to #43)"}}