Skip to content

Commit

Permalink
guard against undefined trees
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Stuart committed Mar 15, 2016
1 parent c9de8e0 commit c02e55c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ module.exports = {
},

treeForAddon: function(tree) {
if (!tree) {
return;
}
var fastbootTree = require('ember-cli-fastboot-addon').fastbootTree;
return this._super.treeForAddon.call(this, fastbootTree(tree));
},

treeForApp: function(tree) {
if (!tree) {
return;
}
var fastbootTree = require('ember-cli-fastboot-addon').fastbootTree;
return fastbootTree(tree);
},
Expand Down

0 comments on commit c02e55c

Please sign in to comment.