Skip to content

Commit 4059da3

Browse files
committed
Guard against this.app being undefined
1 parent 4d3eef3 commit 4059da3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module.exports = {
118118
});
119119
});
120120

121-
if (this.app.name === "dummy") {
121+
if (this.app && this.app.name === "dummy") {
122122
// our dummy app has an echo endpoint!
123123
app.post('/fastboot-testing/echo', bodyParser.text(), (req, res) => {
124124
res.send(req.body);

0 commit comments

Comments
 (0)