summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/audit_table.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/audit_table.jsx b/webapp/components/audit_table.jsx
index 5d4bc4580..e07d6ca12 100644
--- a/webapp/components/audit_table.jsx
+++ b/webapp/components/audit_table.jsx
@@ -378,7 +378,10 @@ export function formatAuditInfo(audit, formatMessage) {
if (userIdField.indexOf('user_id') >= 0) {
userId = userIdField[userIdField.indexOf('user_id') + 1];
- username = UserStore.getProfile(userId).username;
+ var profile = UserStore.getProfile(userId);
+ if (profile) {
+ username = profile.username;
+ }
}
}