Skip to content

Commit

Permalink
Avoid emitting empty element
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Aug 9, 2023
1 parent b694de0 commit 113e807
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ public com.helger.xsds.peppol.smp1.EndpointType getAsJAXBObjectPeppol ()
ret.setCertificate (CertificateHelper.getRFC1421CompliantString (m_sCertificate, false, "\n"));
ret.setServiceDescription (m_sServiceDescription);
ret.setTechnicalContactUrl (m_sTechnicalContactUrl);
ret.setTechnicalInformationUrl (m_sTechnicalInformationUrl);
if (StringHelper.hasText (m_sTechnicalInformationUrl))
ret.setTechnicalInformationUrl (m_sTechnicalInformationUrl);
ret.setExtension (getExtensions ().getAsPeppolExtension ());
ret.setTransportProfile (m_sTransportProfile);
return ret;
Expand Down

0 comments on commit 113e807

Please sign in to comment.