You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2006/09/25 17:49:13 UTC

svn commit: r449709 - /james/jspf/trunk/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java

Author: norman
Date: Mon Sep 25 08:49:12 2006
New Revision: 449709

URL: http://svn.apache.org/viewvc?view=rev&rev=449709
Log:
Fix Nullpointer which get thrown if no Record was found.

Modified:
    james/jspf/trunk/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java

Modified: james/jspf/trunk/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java
URL: http://svn.apache.org/viewvc/james/jspf/trunk/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java?view=diff&rev=449709&r1=449708&r2=449709
==============================================================================
--- james/jspf/trunk/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java (original)
+++ james/jspf/trunk/src/main/java/org/apache/james/jspf/DNSServiceXBillImpl.java Mon Sep 25 08:49:12 2006
@@ -139,7 +139,7 @@
                 throw new TimeoutException();
             }
             
-            if (rr.length > 0) {
+            if (rr != null && rr.length > 0) {
                 records = new ArrayList();
                 for (int i = 0; i < rr.length; i++) {
                     String res;



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org