Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Protect against NPE in linting config. #89

Merged
merged 1 commit into from
Nov 10, 2015

Conversation

blimmer
Copy link
Contributor

@blimmer blimmer commented Nov 10, 2015

Fixes #88.

@blimmer
Copy link
Contributor Author

blimmer commented Nov 10, 2015

@rwjblue this was a blocker for us and necessitates 0.9.7 (IMO)

@rwjblue
Copy link
Member

rwjblue commented Nov 10, 2015

Adding the guard is good, but can you also add this so that this.options can be defined?

@blimmer blimmer force-pushed the bug/protect-linting-npe branch from 6c19883 to 13a8577 Compare November 10, 2015 19:33
@blimmer
Copy link
Contributor Author

blimmer commented Nov 10, 2015

Added!

this._super.included(app);
included: function included(app, parentAddon) {
var target = (parentAddon || app);
this._super.included(target);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the annoyance, can you tweak this to this._super.included.call(this, target)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem! done.

@blimmer blimmer force-pushed the bug/protect-linting-npe branch from 13a8577 to e2c6f7c Compare November 10, 2015 19:52
rwjblue added a commit that referenced this pull request Nov 10, 2015
Protect against NPE in linting config.
@rwjblue rwjblue merged commit f7ec2bb into ember-cli:master Nov 10, 2015
@rwjblue
Copy link
Member

rwjblue commented Nov 10, 2015

Released as v0.9.7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants