mserranom / bbrun

Run Bitbucket Pipelines locally
MIT License
203 stars 32 forks source link

Unguarded TypeError: `Cannot read property 'image' of null` #16

Closed SKalt closed 6 years ago

SKalt commented 6 years ago

I managed to create a null step in an otherwise valid bitbucket-pipelines.yml, and got the uninformative error above. I'm proposing (1) guarding each of the config[attr] || inScopeAttr in bbrun.js and (2) providing a traceback to the null/undefined part of a pipeline.

SKalt commented 6 years ago

turns out I was using v0.8.0, and the issue is fixed in v0.9.0.