repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 5d6b93eaa5ddee3e4e39626a4017bf8a71ab3636:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 5d6b93eaa5ddee3e4e39626a4017bf8a71ab3636
Author: James Baicoianu 
Date:   Wed Apr 24 17:14:54 2019 -0700

    Don't try to call room.createObject if room doesn't exist

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index db5fec9106b51b3fcc8334dbca8077dc77938f07..
index ..cbe705018ab9ce1542af53a25484006b1c6f4795 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -673,7 +673,9 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
       }
     }
     this.createObject = function(type, args) {
-      return this.room.createObject(type, args, this);
+      if (this.room) {
+        return this.room.createObject(type, args, this);
+      }
     }
     this.appendChild = function(obj) {
       var proxyobj = obj

-----END OF PAGE-----