You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by km...@apache.org on 2006/05/25 22:59:02 UTC

svn commit: r409466 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/LogWriter.java

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());