Commit 5cde68c6 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix exception when deleting extension with hidden components

Change-Id: Id3df87c907e20a3cc1241337a64594ca48c6ad29
parent 60a199df
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment