james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/dnsserver DNSServer.java
Date Tue, 17 Jun 2003 22:06:48 GMT
noel        2003/06/17 15:06:48

  Modified:    src/java/org/apache/james/dnsserver DNSServer.java
  Log:
  Fix occassional NPE
  
  Revision  Changes    Path
  1.20      +1 -1      jakarta-james/src/java/org/apache/james/dnsserver/DNSServer.java
  
  Index: DNSServer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/dnsserver/DNSServer.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- DNSServer.java	16 Jun 2003 03:21:15 -0000	1.19
  +++ DNSServer.java	17 Jun 2003 22:06:48 -0000	1.20
  @@ -320,7 +320,7 @@
               short rcode = response.getHeader().getRcode();
               if (rcode == Rcode.NOERROR || rcode == Rcode.NXDOMAIN) {
                   cached = cache.addMessage(response);
  -                if (cached != null) {
  +                if (cached != null && cached.isSuccessful()) {
                       return processSetResponse(cached);
                   }
               }
  
  
  

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


Mime
View raw message