You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/04/13 17:36:22 UTC
[incubator-trafficcontrol] branch master updated: fixes possible
null pointer exception
This is an automated email from the ASF dual-hosted git repository.
dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new a6deeb8 fixes possible null pointer exception
a6deeb8 is described below
commit a6deeb81e7101d5103a08ce6b7a12975075b147f
Author: Jeremy Mitchell <mi...@gmail.com>
AuthorDate: Fri Apr 13 11:25:07 2018 -0600
fixes possible null pointer exception
---
traffic_portal/app/src/app.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/traffic_portal/app/src/app.js b/traffic_portal/app/src/app.js
index c7c1e6d..f0c4385 100644
--- a/traffic_portal/app/src/app.js
+++ b/traffic_portal/app/src/app.js
@@ -419,7 +419,7 @@ trafficPortal.factory('authInterceptor', function ($rootScope, $q, $window, $loc
} else if (rejection.status.toString().match(/^5\d[01356789]$/)) {
// matches 5xx EXCEPT for 502's and 504's which indicate a timeout and will be handled by each service call accordingly
$timeout(function () {
- if (alerts.length > 0) {
+ if (alerts && alerts.length > 0) {
messageModel.setMessages(alerts, false);
} else {
messageModel.setMessages([ { level: 'error', text: rejection.status.toString() + ': ' + rejection.statusText } ], false);
--
To stop receiving notification emails like this one, please contact
dangogh@apache.org.