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;




Reply via email to