{"action":"opened","issue":{"url":"https://api.github.com/repos/aurelia/templating/issues/152","labels_url":"https://api.github.com/repos/aurelia/templating/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating/issues/152/comments","events_url":"https://api.github.com/repos/aurelia/templating/issues/152/events","html_url":"https://github.com/aurelia/templating/issues/152","id":101589162,"number":152,"title":"Possible breaking change with @bindable properties","user":{"login":"RobertTheGrey","id":152037,"avatar_url":"https://avatars.githubusercontent.com/u/152037?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertTheGrey","html_url":"https://github.com/RobertTheGrey","followers_url":"https://api.github.com/users/RobertTheGrey/followers","following_url":"https://api.github.com/users/RobertTheGrey/following{/other_user}","gists_url":"https://api.github.com/users/RobertTheGrey/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertTheGrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertTheGrey/subscriptions","organizations_url":"https://api.github.com/users/RobertTheGrey/orgs","repos_url":"https://api.github.com/users/RobertTheGrey/repos","events_url":"https://api.github.com/users/RobertTheGrey/events{/privacy}","received_events_url":"https://api.github.com/users/RobertTheGrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T07:23:23Z","updated_at":"2015-08-18T07:23:23Z","closed_at":null,"body":"I've recently upgraded Aurelia in a project and as a result the aurelia-binding went from version 0.8.2 to 0.8.6. Previously, the code was working just fine. Now I get exceptions thrown when using @bindable on properties when the view loads like so:\r\n\r\n```\r\nUnhandled promise rejection TypeError: Cannot read property 'hide-completed-actions' of null\r\n    at BindableProperty.initialize (http://localhost:42852/jspm_packages/github/aurelia/templating@0.14.4/aurelia-templating.js:2448:33)\r\n    at new BehaviorInstance (http://localhost:42852/jspm_packages/github/aurelia/templating@0.14.4/aurelia-templating.js:2199:23)\r\n    at HtmlBehaviorResource.create (http://localhost:42852/jspm_packages/github/aurelia/templating@0.14.4/aurelia-templating.js:2821:30)\r\n    at http://localhost:42852/jspm_packages/github/aurelia/templating@0.14.4/aurelia-templating.js:3385:27\r\n    at run (http://localhost:42852/jspm_packages/npm/core-js@0.9.18/modules/es6.promise.js:91:43)\r\n    at http://localhost:42852/jspm_packages/npm/core-js@0.9.18/modules/es6.promise.js:105:11\r\n    at module.exports (http://localhost:42852/jspm_packages/npm/core-js@0.9.18/modules/$.invoke.js:6:25)\r\n    at queue.(anonymous function) (http://localhost:42852/jspm_packages/npm/core-js@0.9.18/modules/$.task.js:40:9)\r\n    at Number.run (http://localhost:42852/jspm_packages/npm/core-js@0.9.18/modules/$.task.js:27:7)\r\n    at listner (http://localhost:42852/jspm_packages/npm/core-js@0.9.18/modules/$.task.js:31:9)\r\n```\r\n\r\nI have a `@bindable hideCompletedActions = true;` defined on the class and when debugging, I found the if statement on the following line:\r\n\r\nhttps://github.com/aurelia/templating/blob/master/src/bindable-property.js#L133\r\n\r\nIt checks for `undefined`, but in this case the attributes array is `null` and as a result goes into the if block resulting in a null coming out of the array causing the error. I'm not sure what the attributes collection used to be equal to in previous versions, but it must not have been null and was perhaps undefined because this error was not throwing in the previous version."}}