db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Klebanoff <kleba...@Mutagen.Net>
Subject [PATCH] ExternalSortFactory Bug Fix
Date Wed, 29 Sep 2004 16:40:56 GMT
Class org.apache.derby.impl.store.access.sort.ExternalSortFactory has a 
latent bug. Its canSupport method throws an exception if it is called 
with a null startParams argument. The patch follows.

Jack Klebanoff

Index: ExternalSortFactory.java
===================================================================
--- ExternalSortFactory.java    (revision 47313)
+++ ExternalSortFactory.java    (working copy)
@@ -322,6 +322,8 @@
 
     public boolean canSupport(Properties startParams) {
 
+        if( startParams == null)
+            return false;
         String impl = 
startParams.getProperty("derby.access.Conglomerate.type");
         if (impl == null)
             return false;


Mime
View raw message