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

Commit

Permalink
don't call toString if the message is null
Browse files Browse the repository at this point in the history
auditors: @bbondy
Fix #4798
  • Loading branch information
bridiver authored and bbondy committed Oct 15, 2016
1 parent f13af5c commit ed04550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ app.on('ready', () => {
title = ''
}
buttons = ['OK']
message = message.toString()
message = message ? message.toString() : ''
dialog.showMessageBox(BrowserWindow.getFocusedWindow(), {
message: message,
title: title,
Expand Down

1 comment on commit ed04550

@bbondy
Copy link
Member

@bbondy bbondy commented on ed04550 Oct 15, 2016

Choose a reason for hiding this comment

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

++

Please sign in to comment.