diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js
index 979e21c4..0af75fea 100644
--- a/data/web/js/site/debug.js
+++ b/data/web/js/site/debug.js
@@ -524,6 +524,9 @@ jQuery(function($){
});
} else if (table == 'autodiscover_log') {
$.each(data, function (i, item) {
+ if (item.ua == null) {
+ item.ua = 'unknown';
+ }
item.ua = '' + item.ua + '';
if (item.service == "activesync") {
item.service = 'ActiveSync';