{"action":"created","issue":{"url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/issues/99","labels_url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/issues/99/comments","events_url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/issues/99/events","html_url":"https://github.com/jfabry/LiveRobotProgramming/issues/99","id":123004899,"number":99,"title":"Transition here by menu when current state is nil ->DNU","user":{"login":"jfabry","id":2393985,"avatar_url":"https://avatars.githubusercontent.com/u/2393985?v=3","gravatar_id":"","url":"https://api.github.com/users/jfabry","html_url":"https://github.com/jfabry","followers_url":"https://api.github.com/users/jfabry/followers","following_url":"https://api.github.com/users/jfabry/following{/other_user}","gists_url":"https://api.github.com/users/jfabry/gists{/gist_id}","starred_url":"https://api.github.com/users/jfabry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfabry/subscriptions","organizations_url":"https://api.github.com/users/jfabry/orgs","repos_url":"https://api.github.com/users/jfabry/repos","events_url":"https://api.github.com/users/jfabry/events{/privacy}","received_events_url":"https://api.github.com/users/jfabry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/labels/Component-Logic","name":"Component-Logic","color":"ededed"},{"url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/labels/Priority-Medium","name":"Priority-Medium","color":"fbca04"},{"url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/labels/Type-Defect","name":"Type-Defect","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"mcamp","id":833197,"avatar_url":"https://avatars.githubusercontent.com/u/833197?v=3","gravatar_id":"","url":"https://api.github.com/users/mcamp","html_url":"https://github.com/mcamp","followers_url":"https://api.github.com/users/mcamp/followers","following_url":"https://api.github.com/users/mcamp/following{/other_user}","gists_url":"https://api.github.com/users/mcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/mcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcamp/subscriptions","organizations_url":"https://api.github.com/users/mcamp/orgs","repos_url":"https://api.github.com/users/mcamp/repos","events_url":"https://api.github.com/users/mcamp/events{/privacy}","received_events_url":"https://api.github.com/users/mcamp/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-18T18:44:26Z","updated_at":"2016-01-04T20:20:03Z","closed_at":null,"body":"I don't have code to reproduce and I don't remember how I got there, sorry\r\n\r\nIf I do a transition to with ```currentstate``` being nil then there is a DNU because ```anotherLRPState = nil```. The problem originates in ```LRPInterpreter>>changeToState:withActions:``` because there ```currentstate``` is read.\r\n\r\n* [ ] we should be able to reproduce and have that as a test\r\n* [ ] the bug should be fixed\r\n\r\nFull stack:\r\n```\r\nUndefinedObject(Object)>>doesNotUnderstand: #container\r\nLRPInterpreter>>recursiveSetState:exitState:withActions:\r\nLRPInterpreter>>recursiveSetState:exitState:withActions:\r\nLRPInterpreter>>changeToState:withActions:\r\nLRPInterpreter>>transitionTo:\r\n[ :e | \r\nself code interpreter transitionTo: aState.\r\nself highlightNode: aState name ] in LRPProgramVisualization>>elementForState: in Block: [ :e | ...\r\nBlockClosure>>cull:\r\n[ | selArgCount |\r\n\"show cursor in case item opens a new MVC window\"\r\n(selArgCount := selector numArgs) = 0\r\n\tifTrue: [ target perform: selector ]\r\n\tifFalse:\r\n\t\t[ selArgCount = arguments size\r\n\t\t\tifTrue: [ target perform: selector withArguments: arguments ]\r\n\t\t\tifFalse: [ target\r\n\t\t\t\t\tperform: selector\r\n\t\t\t\t\twithArguments: (arguments copyWith: evt) ] ].\r\nself changed ] in ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent: in Block: [ | selArgCount |...\r\nBlockClosure>>ensure:\r\nCursorWithMask(Cursor)>>showWhile:\r\nToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent:\r\nToggleMenuItemMorph(MenuItemMorph)>>mouseUp:\r\nToggleMenuItemMorph(MenuItemMorph)>>handleMouseUp:\r\nMouseButtonEvent>>sentTo:\r\nToggleMenuItemMorph(Morph)>>handleEvent:\r\nMorphicEventDispatcher>>dispatchDefault:with:\r\nMorphicEventDispatcher>>handleMouseUp:\r\nMouseButtonEvent>>sentTo:\r\n[ ^ anEvent sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with: in Block: [ ^ anEvent sentTo: self ]\r\nBlockClosure>>ensure:\r\nMorphicEventDispatcher>>dispatchEvent:with:\r\nToggleMenuItemMorph(Morph)>>processEvent:using:\r\nMorphicEventDispatcher>>dispatchDefault:with:\r\nMorphicEventDispatcher>>handleMouseUp:\r\nMouseButtonEvent>>sentTo:\r\n[ ^ anEvent sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with: in Block: [ ^ anEvent sentTo: self ]\r\nBlockClosure>>ensure:\r\nMorphicEventDispatcher>>dispatchEvent:with:\r\nMenuMorph(Morph)>>processEvent:using:\r\nMenuMorph(Morph)>>processEvent:\r\n```"},"comment":{"url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/issues/comments/168793515","html_url":"https://github.com/jfabry/LiveRobotProgramming/issues/99#issuecomment-168793515","issue_url":"https://api.github.com/repos/jfabry/LiveRobotProgramming/issues/99","id":168793515,"user":{"login":"mcamp","id":833197,"avatar_url":"https://avatars.githubusercontent.com/u/833197?v=3","gravatar_id":"","url":"https://api.github.com/users/mcamp","html_url":"https://github.com/mcamp","followers_url":"https://api.github.com/users/mcamp/followers","following_url":"https://api.github.com/users/mcamp/following{/other_user}","gists_url":"https://api.github.com/users/mcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/mcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcamp/subscriptions","organizations_url":"https://api.github.com/users/mcamp/orgs","repos_url":"https://api.github.com/users/mcamp/repos","events_url":"https://api.github.com/users/mcamp/events{/privacy}","received_events_url":"https://api.github.com/users/mcamp/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T20:20:03Z","updated_at":"2016-01-04T20:20:03Z","body":"I went deeper into the code and I should reproduce it before trying to fix it"}}