Skip to content

Commit

Permalink
focus tabs npe fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Sep 29, 2016
1 parent 35ef89f commit c24e4d9
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -115,12 +115,15 @@ private ObjectQuery createTaskQuery(String oid, PageBase page) {
protected List<ITab> createTabs(final PageAdminObjectDetails<F> parentPage) {
List<ITab> tabs = new ArrayList<>();


List<ObjectFormType> objectFormTypes = parentPage.getObjectFormTypes();
// default tabs are always added to component structure, visibility is decided later in
// visible behavior based on adminGuiConfiguration
addDefaultTabs(parentPage, tabs);

if (objectFormTypes == null) {
return tabs;
}

for (ObjectFormType objectFormType : objectFormTypes) {
final FormSpecificationType formSpecificationType = objectFormType.getFormSpecification();
String title = formSpecificationType.getTitle();
Expand Down

0 comments on commit c24e4d9

Please sign in to comment.