{"action":"closed","issue":{"url":"https://api.github.com/repos/INRIA/spoon/issues/754","repository_url":"https://api.github.com/repos/INRIA/spoon","labels_url":"https://api.github.com/repos/INRIA/spoon/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/INRIA/spoon/issues/754/comments","events_url":"https://api.github.com/repos/INRIA/spoon/issues/754/events","html_url":"https://github.com/INRIA/spoon/issues/754","id":166829970,"number":754,"title":"Bad smell in ExpressionTemplate: (im)possible null reference?","user":{"login":"red-hood","id":6573801,"avatar_url":"https://avatars.githubusercontent.com/u/6573801?v=3","gravatar_id":"","url":"https://api.github.com/users/red-hood","html_url":"https://github.com/red-hood","followers_url":"https://api.github.com/users/red-hood/followers","following_url":"https://api.github.com/users/red-hood/following{/other_user}","gists_url":"https://api.github.com/users/red-hood/gists{/gist_id}","starred_url":"https://api.github.com/users/red-hood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red-hood/subscriptions","organizations_url":"https://api.github.com/users/red-hood/orgs","repos_url":"https://api.github.com/users/red-hood/repos","events_url":"https://api.github.com/users/red-hood/events{/privacy}","received_events_url":"https://api.github.com/users/red-hood/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-21T14:15:20Z","updated_at":"2016-07-28T08:22:13Z","closed_at":"2016-07-28T08:22:13Z","body":"Hi,\r\n\r\nin https://github.com/INRIA/spoon/blob/master/src/main/java/spoon/template/ExpressionTemplate.java#L68\r\nc is checked for being null after first calling\r\n\r\n`targetType.getFactory().Class().get(this.getClass());`\r\n\r\n, if it is null, the same method is called again, without checking the return value once. Is that a bug, or is this method supposed to have some strange side effects, which would make it return the actual object on the 2nd call?"}}
{"actor":{"display_login":"monperrus"}}