diff --git a/iacr/collaborators.inc b/iacr/collaborators.inc index 27258a8a9..c2a398d46 100644 --- a/iacr/collaborators.inc +++ b/iacr/collaborators.inc @@ -19,11 +19,14 @@ function fetchData() { let name = document.getElementById('firstName').value + ' ' + document.getElementById('lastName').value; let cryptodb = null; - let tags = document.getElementsByName('tags')[0].value.split(' '); - for (let i = 0; i < tags.length; i++) { - let parts = tags[i].split('#'); - if (parts.length == 0 && parts[0] == 'cryptodb') { - cryptodb = parts[1]; + let tags = document.getElementsByName('tags'); + if (tags) { + tags = tags[0].value.split(' '); + for (let i = 0; i < tags.length; i++) { + let parts = tags[i].split('#'); + if (parts.length == 0 && parts[0] == 'cryptodb') { + cryptodb = parts[1]; + } } } @@ -92,5 +95,9 @@