hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r640652 - /hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java
Date Tue, 25 Mar 2008 00:12:40 GMT
Author: stack
Date: Mon Mar 24 17:12:31 2008
New Revision: 640652

URL: http://svn.apache.org/viewvc?rev=640652&view=rev
Log:
HBASE-545 NPE in TTMR on branch

Modified:
    hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java

Modified: hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java?rev=640652&r1=640651&r2=640652&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java (original)
+++ hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java Mon Mar
24 17:12:31 2008
@@ -482,6 +482,9 @@
     
     /** {@inheritDoc} */
     public void flushRequested(HRegion region) {
+      if (region == null) {
+          return;
+      }
       QueueEntry e = new QueueEntry(region, System.currentTimeMillis());
       synchronized (flushQueue) {
         if (flushQueue.contains(e)) {



Mime
View raw message