geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r348557 - /geronimo/trunk/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
Date Wed, 23 Nov 2005 20:42:58 GMT
Author: jgenender
Date: Wed Nov 23 12:42:54 2005
New Revision: 348557

URL: http://svn.apache.org/viewcvs?rev=348557&view=rev
Log:
Prevent NPE in setHost.

Modified:
    geronimo/trunk/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java

Modified: geronimo/trunk/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java?rev=348557&r1=348556&r2=348557&view=diff
==============================================================================
--- geronimo/trunk/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
(original)
+++ geronimo/trunk/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
Wed Nov 23 12:42:54 2005
@@ -135,8 +135,10 @@
 
     public void setHost(String host) {
         try{
-            if (host == null )
+            if (host == null ){
                 this.host = null;
+                return;
+            }
             
             String strHost = host.trim();
             if (strHost.equals("0.0.0.0")){



Mime
View raw message