Skip to content

Commit

Permalink
Merge pull request #125 from smartdevicelink/fix/app_permissions_consent
Browse files Browse the repository at this point in the history
Fixed 'split on undefined' error in TTSPopUp
  • Loading branch information
Jack-Byrne committed Oct 1, 2018
2 parents 5318845 + d27b07c commit f134a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/view/sdl/TTSPopUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ SDL.TTSPopUp = Em.ContainerView.create(
this.set('appID', appID);
this.set('content', msg);

if (files != '') {
if (files != undefined && files != '') {
var files_to_play = files.split('\n');
for (var i = 0; i < files_to_play.length; ++i) {
this.player.addFile(files_to_play[i]);
Expand Down

0 comments on commit f134a7a

Please sign in to comment.