{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1232","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1232/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1232/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1232/events","html_url":"https://github.com/silverstripe/silverstripe-cms/issues/1232","id":91268193,"number":1232,"title":"ContentController::handleRequest() breaks if not passed 2nd param","user":{"login":"christopherdarling","id":178039,"avatar_url":"https://avatars.githubusercontent.com/u/178039?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherdarling","html_url":"https://github.com/christopherdarling","followers_url":"https://api.github.com/users/christopherdarling/followers","following_url":"https://api.github.com/users/christopherdarling/following{/other_user}","gists_url":"https://api.github.com/users/christopherdarling/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherdarling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherdarling/subscriptions","organizations_url":"https://api.github.com/users/christopherdarling/orgs","repos_url":"https://api.github.com/users/christopherdarling/repos","events_url":"https://api.github.com/users/christopherdarling/events{/privacy}","received_events_url":"https://api.github.com/users/christopherdarling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-26T14:39:48Z","updated_at":"2015-06-26T15:54:10Z","closed_at":null,"body":"If ContentController::handleRequest($request) is called without passing a $model param, the default value is used (null) which causes a \"Trying to get property of non-object\" error here https://github.com/silverstripe/silverstripe-cms/blob/master/code/controllers/ContentController.php#L167\r\n\r\nAdding $this->model to the if statement on https://github.com/silverstripe/silverstripe-cms/blob/master/code/controllers/ContentController.php#L163 shold prevent this"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/comments/115738990","html_url":"https://github.com/silverstripe/silverstripe-cms/issues/1232#issuecomment-115738990","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1232","id":115738990,"user":{"login":"dhensby","id":563596,"avatar_url":"https://avatars.githubusercontent.com/u/563596?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensby","html_url":"https://github.com/dhensby","followers_url":"https://api.github.com/users/dhensby/followers","following_url":"https://api.github.com/users/dhensby/following{/other_user}","gists_url":"https://api.github.com/users/dhensby/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensby/subscriptions","organizations_url":"https://api.github.com/users/dhensby/orgs","repos_url":"https://api.github.com/users/dhensby/repos","events_url":"https://api.github.com/users/dhensby/events{/privacy}","received_events_url":"https://api.github.com/users/dhensby/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T15:54:10Z","updated_at":"2015-06-26T15:54:10Z","body":"@kinglozzer really, getDataModel should handle the instance where there is no DataModel set and we should be using a getter..."}}