Skip to content

Commit

Permalink
Merge pull request #417 from pangratz/fix_416
Browse files Browse the repository at this point in the history
Guard against renderNode not being rendered yet
  • Loading branch information
teddyzeenny committed Jul 3, 2015
2 parents fb26475 + 2b29576 commit 769c0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember_debug/view-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ export default EmberObject.extend(PortMixin, {
* @return {String} the template name
*/
_nodeTemplateName(renderNode) {
let template = renderNode.lastResult.template;
let template = renderNode.lastResult && renderNode.lastResult.template;
if (template && template.meta && template.meta.moduleName) {
return template.meta.moduleName.replace(/\.hbs$/, '');
}
Expand Down

0 comments on commit 769c0ca

Please sign in to comment.