NullPointerException in web TabSheet implementation #913

This commit is contained in:
Daniil Tsarev 2018-06-09 11:00:41 +04:00
parent 3f3a5248c7
commit 843c762dea

View File

@ -440,8 +440,12 @@ public class WebTabSheet extends WebAbstractComponent<CubaTabSheet> implements T
return null;
}
final String name = tabMapping.get(component).getName();
return tabs.get(name);
ComponentDescriptor tabDescriptor = tabMapping.get(component);
if (tabDescriptor == null) {
return null;
}
return tabs.get(tabDescriptor.getName());
}
@Override