NullPointerException occurs if sender contains two @ ----------------------------------------------------
Key: JSPF-60 URL: https://issues.apache.org/jira/browse/JSPF-60 Project: jSPF Issue Type: Bug Affects Versions: 0.9.5 Reporter: Frank Stolle The following code produces a NullPointerException: import org.apache.james.jspf.executor.SPFResult; import org.apache.james.jspf.impl.DefaultSPF; public class CheckSPF { /** * @param args */ public static void main(String[] args) { String heloname = "a.server.com"; String ip = "127.0.0.1"; String from = "[EMAIL PROTECTED]/[EMAIL PROTECTED]"; DefaultSPF spf = new DefaultSPF(); SPFResult result = spf.checkSPF(ip, from, heloname); System.out.println("result: " + result.getResult()); System.out.println("expl: " + result.getExplanation()); System.out.println("header: " + result.getHeaderText()); } } The problem is the duplicate @-character. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]