diff --git a/lib/ember-qunit/test-wrapper.js b/lib/ember-qunit/test-wrapper.js index 71d432b3..20392f75 100644 --- a/lib/ember-qunit/test-wrapper.js +++ b/lib/ember-qunit/test-wrapper.js @@ -16,7 +16,7 @@ export default function testWrapper(qunit /*, testName, expected, callback, asyn var message; if (reason instanceof Error) { message = reason.stack; - if (reason.message && message.indexOf(reason.message) < 0) { + if (reason.message && message && message.indexOf(reason.message) < 0) { // PhantomJS has a `stack` that does not contain the actual // exception message. message = Ember.inspect(reason) + "\n" + message;