mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
NullPointerException in web TabSheet implementation #913
This commit is contained in:
parent
3f3a5248c7
commit
843c762dea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user