Sfoglia il codice sorgente

fix: handle expandoTable void safety

feature/quarkus-rest-bridge
Gabriele Zigurella 2 anni fa
parent
commit
b683f9499d
  1. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java

@ -99,7 +99,10 @@ public class CompanyExpandoStartupAction extends SimpleAction {
ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) {}
}
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
ExpandoColumn expandoColumn = null;
if(expandoTable != null){
expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
}
if (expandoColumn == null) {
try {
// Manifattura Web Group, modifica per rendere possibile la creazione di campi personalizzati di tipo

Caricamento…
Annulla
Salva