diff --git a/Apps/Sandcastle/CesiumSandcastle.js b/Apps/Sandcastle/CesiumSandcastle.js index 626d40b28b05..c3d282189683 100644 --- a/Apps/Sandcastle/CesiumSandcastle.js +++ b/Apps/Sandcastle/CesiumSandcastle.js @@ -1520,6 +1520,8 @@ require({ searchContainer = registry.byId("searchContainer"); hideSearchContainer(); - registry.byId("innerPanel").selectChild(subtabs[currentTab]); + if (defined(subtabs[currentTab])) { + registry.byId("innerPanel").selectChild(subtabs[currentTab]); + } }); });