installationProgress can be null

This commit is contained in:
Girish Ramakrishnan
2015-05-01 11:14:50 -07:00
parent 9c98ac35cf
commit a01d8b6cf7
+2 -1
View File
@@ -513,7 +513,8 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
tmp.iconUrl = that.getAppIconUrl(tmp);
// extract progress percentage
var progress = Number.parseInt(tmp.installationProgress.split(',')[0]);
var installationProgress = tmp.installationProgress || '';
var progress = Number.parseInt(installationProgress.split(',')[0]);
if (isNaN(progress)) progress = 0;
tmp.progress = progress;