lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r912331 - /lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java
Date Sun, 21 Feb 2010 11:20:33 GMT
Author: uschindler
Date: Sun Feb 21 11:20:33 2010
New Revision: 912331

URL: http://svn.apache.org/viewvc?rev=912331&view=rev
Log:
LUCENE-2273: add additional null check

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java?rev=912331&r1=912330&r2=912331&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java Sun Feb 21 11:20:33
2010
@@ -76,6 +76,7 @@
       synchronized(cache.readerCache) {
         for (final Map.Entry<Object,Map<Entry, Object>> readerCacheEntry : cache.readerCache.entrySet())
{
           final Object readerKey = readerCacheEntry.getKey();
+          if (readerKey == null) continue;
           final Map<Entry, Object> innerCache = readerCacheEntry.getValue();
           for (final Map.Entry<Entry, Object> mapEntry : innerCache.entrySet()) {
             Entry entry = mapEntry.getKey();



Mime
View raw message