@@ -84,7 +84,9 @@ qx.Class.define("osparc.data.model.IframeHandler", {
8484 this . __unresponsiveRetries = 5 ;
8585 this . __nodeState ( ) ;
8686
87- this . getIFrame ( ) . resetSource ( ) ;
87+ if ( this . getIFrame ( ) ) {
88+ this . getIFrame ( ) . resetSource ( ) ;
89+ }
8890 } ,
8991
9092 __initIFrame : function ( ) {
@@ -365,7 +367,9 @@ qx.Class.define("osparc.data.model.IframeHandler", {
365367
366368 // will switch to the loading page
367369 node . resetServiceUrl ( ) ;
368- this . getIFrame ( ) . resetSource ( ) ;
370+ if ( this . getIFrame ( ) ) {
371+ this . getIFrame ( ) . resetSource ( ) ;
372+ }
369373 this . fireEvent ( "iframeChanged" ) ;
370374 }
371375 } ,
@@ -396,8 +400,10 @@ qx.Class.define("osparc.data.model.IframeHandler", {
396400 const status = node . getStatus ( ) . getInteractive ( ) ;
397401 // it might have been stopped
398402 if ( [ "running" , "ready" ] . includes ( status ) ) {
399- this . getIFrame ( ) . resetSource ( ) ;
400- this . getIFrame ( ) . setSource ( node . getServiceUrl ( ) ) ;
403+ if ( this . getIFrame ( ) ) {
404+ this . getIFrame ( ) . resetSource ( ) ;
405+ this . getIFrame ( ) . setSource ( node . getServiceUrl ( ) ) ;
406+ }
401407
402408 // fire event to force switching to iframe's content:
403409 // it is required in those cases where the native 'load' event isn't triggered (voila)
0 commit comments