db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1080573 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/daemon/IndexStatisticsDaemonImpl.java
Date Fri, 11 Mar 2011 14:12:40 GMT
Author: kahatlen
Date: Fri Mar 11 14:12:40 2011
New Revision: 1080573

URL: http://svn.apache.org/viewvc?rev=1080573&view=rev
Log:
DERBY-5124: NPE or assert failure printed when dropping table while statistics are written
out

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/daemon/IndexStatisticsDaemonImpl.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/daemon/IndexStatisticsDaemonImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/daemon/IndexStatisticsDaemonImpl.java?rev=1080573&r1=1080572&r2=1080573&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/daemon/IndexStatisticsDaemonImpl.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/daemon/IndexStatisticsDaemonImpl.java
Fri Mar 11 14:12:40 2011
@@ -553,9 +553,10 @@ public class IndexStatisticsDaemonImpl
             }
 
             // Log some information.
+            ConglomerateDescriptor cd = dd.getConglomerateDescriptor(index);
             log(asBackgroundTask, td,
                     "wrote stats for index "  + 
-                    dd.getConglomerateDescriptor(index).getDescriptorName() +
+                    (cd == null ? "n/a" : cd.getDescriptorName()) +
                     " (" + index + "): rows=" + numRows +
                     ", card=" + cardToStr(cardinality));
         }



Mime
View raw message