From 94c18d66ff4471245944f98cfa24a2cbb20589f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 23 Nov 2022 23:04:04 +0100 Subject: [PATCH] Don't cherry-pick: - upgraded project files for Apache NetBeans IDE 15 - synchronized file(s) from JFinancials - updated jar(s) --- lib/jcoreee.jar | Bin 48061 -> 47956 bytes nbproject/ant-deploy.xml | 22 +++++++++++++++++- nbproject/build-impl.xml | 22 ++++-------------- nbproject/project.properties | 2 +- .../AddressbookMailerSingletonBean.java | 9 ++++--- 5 files changed, 32 insertions(+), 23 deletions(-) diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 7875d1e28aa5c7870a87df416ff27491d35ee45d..fa82023e537b42f98b05c403a446c558650e5f35 100644 GIT binary patch delta 1758 zcmZWpYgANK6#nj+VeZVGJ1|H%!+^AV+`;J}E3sAbx!UuLgA{ZQ*i|7tB;D|1!0Y~QP*t!C!#^L=}t{W$0D*_ZE$ z@Ba|C7Zw?e3Sb7l9&GBgW!P>EHkIwnh`SX45a=wZ@J-B}=&kVO_$K5AG`ZU6n=na} z?u?@P$~84r?m2b!{<`|g#&vbInKs3ykYBhue?Dd4NTCktH_33Ly^a)-Mv1kiP|#2k zq34J(#C9LC14k&zGJo6W3R2)#FbNwq;g?ZwMuP$)8WjZaii{>RHYr?ZqZzN7v027z z3T*IOu?1UYG|Sj#VaFCL>}b`{>oVT3;!U(^WV;oy*rB1FGIq(>En|;@1nf0qpNw`( zFQ$GRR_&@N2~LYf_HJ)im^Ci#(SFOs2RtsIF1u$ zyf33i#s{>j#1kq~?g^RMhcZr5p>4W>lZV=Dnr)9D(o zhn?vM;*9jAGtaON)ntepPFar{NLb4KWQ54JV}p()#Iv@Ru|Qqu$GF(V(cC9x<9`jN z-ZlZ+lSReC$z78?b`mCQ*E~hRR7}%EjwW(7k;j56YTcH(m}ka(1(BgWwMQj~j6xN~ zh*wdfiBe50Mm){(FO`^kxufCFEpA=cNrQ5C7oR$W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b=MNg*Wy`om##Apall;D5 z=}W<3Mum6n(o$oszs6YUU0rGftIA538$rKOQ_Wx{7js#;mz`dy@>dvMpD|^6{zL^s zsD4yj$W^Hc*^d)a5Jy=%<02yXyOSBE(6iNDN-9MJXVtp63WeO#TVR2~oo0hXBL;GZ z0UGvUFmnoGunR+26X?$^`2=egjvBIg)?3{Qyddw|mJW#VjeaLw{nW9>v#HRnK z%k5U0(Bc+nA5oE1$M7!`rqH)7ZY8&&b(#`rXm!!KB1wT(x6<|iIOsfsdnTAUM{;nt zGKT7pJE_qdNsVpEbfhIpS;I_$ay-oMs8{Je@4D5CrnO~>ENeK`9re-d#)%@zq?Ni0~2@hd`c+<`|tWgj8{9OqlNJ@Q4HB!)p8qkEoeQ2PS%G{Ry|2 zo*!l#^Cewn=$gVXoia~miyN~^X-(zAIq0cECna@i)N(RaWmoU6 c+q)C#Vo$b6KNzO;roohVs=w{$X7k{G0o>8{(f|Me diff --git a/nbproject/ant-deploy.xml b/nbproject/ant-deploy.xml index 2d5f877..fdc06d5 100644 --- a/nbproject/ant-deploy.xml +++ b/nbproject/ant-deploy.xml @@ -1,4 +1,24 @@ + @@ -8,7 +28,7 @@ - + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index aab9fd5..fae0c9e 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -522,8 +522,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f - - + @@ -555,8 +554,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f - - + @@ -707,18 +705,6 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f - - - - - - - - - - - - @@ -734,8 +720,7 @@ or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties f - - + @@ -1232,6 +1217,7 @@ exists or setup the property manually. For example like this: + diff --git a/nbproject/project.properties b/nbproject/project.properties index aa941fb..15cec14 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -30,7 +30,7 @@ includes=** j2ee.compile.on.save=true j2ee.deploy.on.save=true j2ee.platform=1.7 -j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.security.enterprise-api.jar:${j2ee.server.home}/modules/javax.security.enterprise.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/cdi-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar +j2ee.platform.classpath=${j2ee.server.home}/modules/cdi-api.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.enterprise-api.jar:${j2ee.server.home}/modules/javax.security.enterprise.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar diff --git a/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookMailerSingletonBean.java b/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookMailerSingletonBean.java index 1eb0fd3..8d93145 100644 --- a/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookMailerSingletonBean.java +++ b/src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookMailerSingletonBean.java @@ -146,15 +146,18 @@ public class AddressbookMailerSingletonBean extends BaseMailerBean implements De // Are some variables set? if ((emailWrapper.getTemplateVariables() != null) && (!emailWrapper.getTemplateVariables().isEmpty())) { // Add all variables - for (Map.Entry entry : emailWrapper.getTemplateVariables().entrySet()) { + for (final Map.Entry entry : emailWrapper.getTemplateVariables().entrySet()) { // Get key/value - String key = (String) entry.getKey(); - String value = (String) entry.getValue(); + final String key = (String) entry.getKey(); + final String value = (String) entry.getValue(); // Both should not be empty if (null == key) { // Throw NPE throw new NullPointerException("key is null"); //NOI18N + } else if (key.isEmpty()) { + // Throw IAE + throw new NullPointerException("key is empty"); //NOI18N } else if (null == value) { // Throw NPE again throw new NullPointerException(MessageFormat.format("value for key={0} is null", key)); //NOI18N -- 2.39.5