{"action":"created","issue":{"url":"https://api.github.com/repos/LLK/scratch-flash/issues/901","labels_url":"https://api.github.com/repos/LLK/scratch-flash/issues/901/labels{/name}","comments_url":"https://api.github.com/repos/LLK/scratch-flash/issues/901/comments","events_url":"https://api.github.com/repos/LLK/scratch-flash/issues/901/events","html_url":"https://github.com/LLK/scratch-flash/pull/901","id":102410731,"number":901,"title":"Fix error when primVarGet is called without an active thread.","user":{"login":"sclements","id":874656,"avatar_url":"https://avatars.githubusercontent.com/u/874656?v=3","gravatar_id":"","url":"https://api.github.com/users/sclements","html_url":"https://github.com/sclements","followers_url":"https://api.github.com/users/sclements/followers","following_url":"https://api.github.com/users/sclements/following{/other_user}","gists_url":"https://api.github.com/users/sclements/gists{/gist_id}","starred_url":"https://api.github.com/users/sclements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sclements/subscriptions","organizations_url":"https://api.github.com/users/sclements/orgs","repos_url":"https://api.github.com/users/sclements/repos","events_url":"https://api.github.com/users/sclements/events{/privacy}","received_events_url":"https://api.github.com/users/sclements/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-21T16:01:38Z","updated_at":"2015-09-02T16:21:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/LLK/scratch-flash/pulls/901","html_url":"https://github.com/LLK/scratch-flash/pull/901","diff_url":"https://github.com/LLK/scratch-flash/pull/901.diff","patch_url":"https://github.com/LLK/scratch-flash/pull/901.patch"},"body":"This occurs when there is a timer hat block which can run before the green flag is pressed."},"comment":{"url":"https://api.github.com/repos/LLK/scratch-flash/issues/comments/137152681","html_url":"https://github.com/LLK/scratch-flash/pull/901#issuecomment-137152681","issue_url":"https://api.github.com/repos/LLK/scratch-flash/issues/901","id":137152681,"user":{"login":"cwillisf","id":7019101,"avatar_url":"https://avatars.githubusercontent.com/u/7019101?v=3","gravatar_id":"","url":"https://api.github.com/users/cwillisf","html_url":"https://github.com/cwillisf","followers_url":"https://api.github.com/users/cwillisf/followers","following_url":"https://api.github.com/users/cwillisf/following{/other_user}","gists_url":"https://api.github.com/users/cwillisf/gists{/gist_id}","starred_url":"https://api.github.com/users/cwillisf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwillisf/subscriptions","organizations_url":"https://api.github.com/users/cwillisf/orgs","repos_url":"https://api.github.com/users/cwillisf/repos","events_url":"https://api.github.com/users/cwillisf/events{/privacy}","received_events_url":"https://api.github.com/users/cwillisf/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T16:21:26Z","updated_at":"2015-09-02T16:21:26Z","body":"I share @TheLogFather's concerns... specifically:\r\n- How is it possible that we'd run this block without having an active thread? Shouldn't the hat block be running on an active thread, even if it's only active long enough for the hat block to say \"nevermind\"? This is probably just a lack of understanding on my part, but maybe you can help me learn :)\r\n- Is there really no way to get from a `Block` to its containing `ScratchObj`? I see `app.viewedObj()` being used all over Block.as so I guess it must be true, but it seems like having such a direct path would be a better solution for this change and IMO would also make the code in Block.as a little less fragile."}}