Sfoglia il codice sorgente

fix: handle Company void safety

feature/quarkus-rest-bridge
Gabriele Zigurella 2 anni fa
parent
commit
00455165db
  1. 2
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java

2
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaPostUtil.java

@ -62,6 +62,7 @@ public class FirmaPostUtil {
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);
} }
if(Validator.isNotNull(company)){
String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", false); String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", false);
if (Validator.isNotNull(urlPdfExtractor)) { if (Validator.isNotNull(urlPdfExtractor)) {
byte[] fileArray = Base64.decode(token); byte[] fileArray = Base64.decode(token);
@ -105,6 +106,7 @@ public class FirmaPostUtil {
} }
} }
} }
}
return risposta; return risposta;
} }

Caricamento…
Annulla
Salva