From 451d16a664c202179a1b2cbe49d52680f5fa0db5 Mon Sep 17 00:00:00 2001 From: fo Date: Thu, 11 Dec 2014 13:37:41 +0200 Subject: [PATCH] Fixes error when myroomjid is null. --- audio_levels.js | 3 +++ index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/audio_levels.js b/audio_levels.js index 5db737793..041a4afd4 100644 --- a/audio_levels.js +++ b/audio_levels.js @@ -85,6 +85,9 @@ var AudioLevels = (function(my) { drawContext.drawImage(canvasCache, 0, 0); if(resourceJid === AudioLevels.LOCAL_LEVEL) { + if(!connection.emuc.myroomjid) { + return; + } resourceJid = Strophe.getResourceFromJid(connection.emuc.myroomjid); } diff --git a/index.html b/index.html index b08db0c19..955d910b2 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@ - +