diff --git a/ui/html/game.page.tmpl.html b/ui/html/game.page.tmpl.html
index e40299d..ddff28e 100644
--- a/ui/html/game.page.tmpl.html
+++ b/ui/html/game.page.tmpl.html
@@ -57,7 +57,7 @@
const data = JSON.parse(e.data);
console.log(data); //TODO remove debug
- if ('players' in data) {
+ if ('players' in data && data.players !== null) {
namesSection.innerHTML = '';
for (const player of data.players) {
const nameClone = nameTemplate.content.cloneNode(true);