db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r409466 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/LogWriter.java
Date Thu, 25 May 2006 20:59:02 GMT
Author: kmarsden
Date: Thu May 25 13:59:02 2006
New Revision: 409466

URL: http://svn.apache.org/viewvc?rev=409466&view=rev
Log:
DDERBY-1298 Tracing client data source gives NPE if all data source properties are not set

Contributed by Deepa Remesh


Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/LogWriter.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/LogWriter.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/LogWriter.java?rev=409466&r1=409465&r2=409466&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/LogWriter.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/LogWriter.java Thu May 25 13:59:02
2006
@@ -1247,7 +1247,8 @@
                     value = "********";
                 }
                 
-                properties.setProperty(propertyKey, value);
+                if(value != null)
+                	properties.setProperty(propertyKey, value);
             }
         } catch (NamingException e) {
             throw new SqlException(this, e.toString());



Mime
View raw message