Pman.js
[Pman.Core] / Pman.js
diff --git a/Pman.js b/Pman.js
index c3df8c2..14d5e01 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -236,6 +236,11 @@ Pman = new Roo.Document(
         
        
         //console.log( "t7:" + ((new Date())-stime));
+        if (!Pman.layout.getRegion('center').tabs) {
+                Roo.log("Error could not find tabs? - not adding toolbar?");
+                return;
+        }
+        
         var se = Pman.layout.getRegion('center').tabs.stripEl;
         var tbh = se.createChild( 
                 { tag: 'td', style: 'width:100%;'  });