When using one of the functions MailText.getMailtext / getMailText2 / getMailText3 the content of the mailtext is parsed for specific tokens. The parsing fails when mailtext has no content (is null).
Regards, Dirk Niemeyer
Proposed patch:
--- base/src/org/compiere/model/MMailText.java +++ base/src/org/compiere/model/MMailText.java @@ -151,7 +151,7 @@ */
private String parse (String text)
{
- if (text.indexOf('@') == -1)
+ if (text == null || text.indexOf('@') == -1)
return text;
// Parse User
text = parse (text, m_user);
Log in to post a comment.
Proposed patch:
Index: base/src/org/compiere/model/MMailText.java
--- base/src/org/compiere/model/MMailText.java
+++ base/src/org/compiere/model/MMailText.java
@@ -151,7 +151,7 @@
*/
private String parse (String text)
{
- if (text.indexOf('@') == -1)
+ if (text == null || text.indexOf('@') == -1)
return text;
// Parse User
text = parse (text, m_user);