{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/3533","repository_url":"https://api.github.com/repos/Particular/NServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3533/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3533/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3533/events","html_url":"https://github.com/Particular/NServiceBus/issues/3533","id":137554372,"number":3533,"title":"Throw `InvalidOperationException` with a meaningful message when handler or saga returns null instead of a task.","user":{"login":"danielmarbach","id":174258,"avatar_url":"https://avatars.githubusercontent.com/u/174258?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmarbach","html_url":"https://github.com/danielmarbach","followers_url":"https://api.github.com/users/danielmarbach/followers","following_url":"https://api.github.com/users/danielmarbach/following{/other_user}","gists_url":"https://api.github.com/users/danielmarbach/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmarbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmarbach/subscriptions","organizations_url":"https://api.github.com/users/danielmarbach/orgs","repos_url":"https://api.github.com/users/danielmarbach/repos","events_url":"https://api.github.com/users/danielmarbach/events{/privacy}","received_events_url":"https://api.github.com/users/danielmarbach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Impact:%20S","name":"Impact: S","color":"e11d21"},{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Size:%20S","name":"Size: S","color":"B6FF00"},{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Tag:%20Core%20v6","name":"Tag: Core v6","color":"ffff00"}],"state":"open","locked":false,"assignee":{"login":"boblangley","id":2546913,"avatar_url":"https://avatars.githubusercontent.com/u/2546913?v=3","gravatar_id":"","url":"https://api.github.com/users/boblangley","html_url":"https://github.com/boblangley","followers_url":"https://api.github.com/users/boblangley/followers","following_url":"https://api.github.com/users/boblangley/following{/other_user}","gists_url":"https://api.github.com/users/boblangley/gists{/gist_id}","starred_url":"https://api.github.com/users/boblangley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boblangley/subscriptions","organizations_url":"https://api.github.com/users/boblangley/orgs","repos_url":"https://api.github.com/users/boblangley/repos","events_url":"https://api.github.com/users/boblangley/events{/privacy}","received_events_url":"https://api.github.com/users/boblangley/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Particular/NServiceBus/milestones/62","html_url":"https://github.com/Particular/NServiceBus/milestones/6.0.0","labels_url":"https://api.github.com/repos/Particular/NServiceBus/milestones/62/labels","id":704266,"number":62,"title":"6.0.0","description":"Setting up deployment process","creator":{"login":"SimonCropp","id":122666,"avatar_url":"https://avatars.githubusercontent.com/u/122666?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonCropp","html_url":"https://github.com/SimonCropp","followers_url":"https://api.github.com/users/SimonCropp/followers","following_url":"https://api.github.com/users/SimonCropp/following{/other_user}","gists_url":"https://api.github.com/users/SimonCropp/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonCropp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonCropp/subscriptions","organizations_url":"https://api.github.com/users/SimonCropp/orgs","repos_url":"https://api.github.com/users/SimonCropp/repos","events_url":"https://api.github.com/users/SimonCropp/events{/privacy}","received_events_url":"https://api.github.com/users/SimonCropp/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":176,"state":"open","created_at":"2014-06-28T13:41:09Z","updated_at":"2016-03-03T21:51:01Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-03-01T12:00:57Z","updated_at":"2016-03-04T07:44:32Z","closed_at":null,"body":"Outcome of [Null task handlig](https://github.com/Particular/NServiceBus/issues/3486)\r\n\r\n\r\n```\r\npublic Task Handle(MyCommand message, IMessageHandlerContext context)\r\n{\r\n    return null;\r\n}\r\n`\r\n```\r\n\r\nsomething like\r\n\r\n\r\n```\r\nthrow new InvalidOperationException(\"Please return either a Task, a completed Task or mark the method { methodInfo } as async\")\r\n```\r\n\r\n\r\n* [x] Handler\r\n* [ ] Saga\r\n* [x] IWantToRunWhenTheBusStartsAndStops\r\n"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/192165767","html_url":"https://github.com/Particular/NServiceBus/issues/3533#issuecomment-192165767","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3533","id":192165767,"user":{"login":"andreasohlund","id":125028,"avatar_url":"https://avatars.githubusercontent.com/u/125028?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasohlund","html_url":"https://github.com/andreasohlund","followers_url":"https://api.github.com/users/andreasohlund/followers","following_url":"https://api.github.com/users/andreasohlund/following{/other_user}","gists_url":"https://api.github.com/users/andreasohlund/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasohlund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasohlund/subscriptions","organizations_url":"https://api.github.com/users/andreasohlund/orgs","repos_url":"https://api.github.com/users/andreasohlund/repos","events_url":"https://api.github.com/users/andreasohlund/events{/privacy}","received_events_url":"https://api.github.com/users/andreasohlund/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T07:44:32Z","updated_at":"2016-03-04T07:44:32Z","body":":+1: "}}