geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aging...@apache.org
Subject [54/60] [abbrv] incubator-geode git commit: GEODE-11: Added conditional for null case
Date Tue, 03 May 2016 21:46:08 GMT
GEODE-11: Added conditional for null case


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/1400eaed
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/1400eaed
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/1400eaed

Branch: refs/heads/feature/GEODE-1209
Commit: 1400eaed861288da69a1c0ab669e7cbedb3621c1
Parents: 2a786ee
Author: Barry Oglesby <boglesby@pivotal.io>
Authored: Mon May 2 14:21:56 2016 -0700
Committer: Barry Oglesby <boglesby@pivotal.io>
Committed: Mon May 2 14:21:56 2016 -0700

----------------------------------------------------------------------
 .../gemstone/gemfire/cache/lucene/internal/LuceneIndexImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/1400eaed/geode-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexImpl.java
----------------------------------------------------------------------
diff --git a/geode-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexImpl.java
b/geode-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexImpl.java
index f530f8c..1158fd1 100644
--- a/geode-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexImpl.java
+++ b/geode-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexImpl.java
@@ -91,7 +91,7 @@ public abstract class LuceneIndexImpl implements InternalLuceneIndex {
   }
 
   public void setFieldAnalyzers(Map<String, Analyzer> fieldAnalyzers) {
-    this.fieldAnalyzers = Collections.unmodifiableMap(fieldAnalyzers);
+    this.fieldAnalyzers = fieldAnalyzers == null ? null : Collections.unmodifiableMap(fieldAnalyzers);
   }
 
   protected abstract void initialize();


Mime
View raw message