HBASE-750 NPE caused by StoreFileScanner.updateReaders

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@678898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-07-22 20:59:20 +00:00
parent 6591077efc
commit 80843cd04d
1 changed files with 2 additions and 1 deletions

View File

@ -377,7 +377,8 @@ implements ChangedReadersObserver {
ViableRow viableRow = getNextViableRow(); ViableRow viableRow = getNextViableRow();
openReaders(viableRow.getRow()); openReaders(viableRow.getRow());
LOG.debug("Replaced Scanner Readers at row " + LOG.debug("Replaced Scanner Readers at row " +
Bytes.toString(viableRow.getRow())); (viableRow == null || viableRow.getRow() == null? "null":
Bytes.toString(viableRow.getRow())));
} finally { } finally {
this.lock.writeLock().unlock(); this.lock.writeLock().unlock();
} }