Fix exception when deleting extension with hidden components
@@ -316,8 +316,10 @@ public class YoungAndroidPalettePanel extends Composite implements SimplePalette
public void removeComponent(String componentTypeName) {
String categoryString = COMPONENT_DATABASE.getCategoryString(componentTypeName);
ComponentCategory category = ComponentCategory.valueOf(categoryString);
+ if (simplePaletteItems.containsKey(componentTypeName)) {
removePaletteItem(simplePaletteItems.get(componentTypeName), category);
}
+ }
