- }
- var activeEl = this.get('/LeftTree').getActiveElement();
- var xtype = file.guessName( activeEl )
-
- this.get('/Window.view-help-nb').el.set_current_page(1);
- // get the active element being edited.
- var helpurl = file.getHelpUrl(xtype);
- // now load the help info in the page..
- this.get('help-view').el.open(helpurl);
+ }
+ var activeEl = this.get('/LeftTree').getActiveElement();
+ var xtype = file.guessName( activeEl )
+ if (!xtype || !xtype.length) {
+ return;
+ }
+ this.get('/Window.view-help-nb').el.set_current_page(1);
+
+ // get the active element being edited.
+ var helpurl = file.getHelpUrl(xtype);
+
+ // now load the help info in the page..
+ this.get('help-view').el.open(helpurl);