aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/content/enigmailKeyManager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/content/enigmailKeyManager.js b/ui/content/enigmailKeyManager.js
index 8ae71a88..e1add1e6 100644
--- a/ui/content/enigmailKeyManager.js
+++ b/ui/content/enigmailKeyManager.js
@@ -1813,7 +1813,7 @@ var gKeyListView = {
// does a user ID (partially) match?
for (let idx = 0; idx < keyObj.userIds.length; idx++) {
uid = keyObj.userIds[idx].userId;
- if (uid.toLowerCase().indexOf(searchTxt) >= 0) {
+ if (uid && (uid.toLowerCase().indexOf(searchTxt) >= 0)) {
showKey = true;
}
}