{"comment":{"url":"https://api.github.com/repos/jpkrohling/hawkular-accounts/comments/15589911","html_url":"https://github.com/jpkrohling/hawkular-accounts/commit/44f6c5763bd4fed9213c99591a2b65d49af541bd#commitcomment-15589911","id":15589911,"user":{"login":"jpkrohling","id":13387,"avatar_url":"https://avatars.githubusercontent.com/u/13387?v=3","gravatar_id":"","url":"https://api.github.com/users/jpkrohling","html_url":"https://github.com/jpkrohling","followers_url":"https://api.github.com/users/jpkrohling/followers","following_url":"https://api.github.com/users/jpkrohling/following{/other_user}","gists_url":"https://api.github.com/users/jpkrohling/gists{/gist_id}","starred_url":"https://api.github.com/users/jpkrohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpkrohling/subscriptions","organizations_url":"https://api.github.com/users/jpkrohling/orgs","repos_url":"https://api.github.com/users/jpkrohling/repos","events_url":"https://api.github.com/users/jpkrohling/events{/privacy}","received_events_url":"https://api.github.com/users/jpkrohling/received_events","type":"User","site_admin":false},"position":108,"line":190,"path":"accounts/src/main/java/org/hawkular/accounts/backend/boundary/OrganizationEndpoint.java","commit_id":"44f6c5763bd4fed9213c99591a2b65d49af541bd","created_at":"2016-01-21T16:14:29Z","updated_at":"2016-01-21T16:14:29Z","body":"I believe the original reasoning included the care about \"null\" and the cost of throwing an exception. As this is a user-facing component (REST endpoint), throwing exceptions at will might slow down the server, so, it's faster to check it this way. "}}