directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1021418 - /directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Date Mon, 11 Oct 2010 16:40:36 GMT
Author: kayyagari
Date: Mon Oct 11 16:40:36 2010
New Revision: 1021418

URL: http://svn.apache.org/viewvc?rev=1021418&view=rev
Log:
o added few checks for null values

Modified:
    directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java

Modified: directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java?rev=1021418&r1=1021417&r2=1021418&view=diff
==============================================================================
--- directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
(original)
+++ directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Mon Oct 11 16:40:36 2010
@@ -501,6 +501,11 @@ public class ConfigPartitionReader
     {
         KdcServerBean kdcServerBean = readKdcServer();
         
+        if ( kdcServerBean == null )
+        {
+            return null;
+        }
+        
         KdcServer kdcServer = new KdcServer();
         
         for ( TransportBean transportBean : kdcServerBean.getTransports() )
@@ -584,6 +589,12 @@ public class ConfigPartitionReader
     public DnsServer createDnsServer() throws Exception
     {
         DnsServerBean dnsServerBean = readDnsServer();
+        
+        if ( dnsServerBean == null )
+        {
+            return null;
+        }
+        
         DnsServer dnsServer = new DnsServer();
         
         for ( TransportBean transportBean : dnsServerBean.getTransports() )
@@ -696,6 +707,11 @@ public class ConfigPartitionReader
     {
         NtpServerBean ntpServerBean = readNtpServer();
         
+        if ( ntpServerBean == null )
+        {
+            return null;
+        }
+        
         NtpServer ntpServer = new NtpServer();
         
         for ( TransportBean transportBean : ntpServerBean.getTransports() )



Mime
View raw message