You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2005/01/07 17:47:48 UTC
cvs commit: jakarta-slide/src/stores/org/apache/slide/index/lucene LucenePropertiesIndexer.java
luetzkendorf 2005/01/07 08:47:48
Modified: src/stores/org/apache/slide/index/lucene
LucenePropertiesIndexer.java
Log:
fix NPE if no user configuration is given (Eirikur S. Hrafnsson)
Revision Changes Path
1.6 +3 -1 jakarta-slide/src/stores/org/apache/slide/index/lucene/LucenePropertiesIndexer.java
Index: LucenePropertiesIndexer.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/stores/org/apache/slide/index/lucene/LucenePropertiesIndexer.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- LucenePropertiesIndexer.java 7 Dec 2004 17:49:57 -0000 1.5
+++ LucenePropertiesIndexer.java 7 Jan 2005 16:47:48 -0000 1.6
@@ -52,7 +52,9 @@
try {
indexConfiguration.initDefaultConfiguration();
- indexConfiguration.readPropertyConfiguration(this.indexedProperties);
+ if (this.indexedProperties != null) {
+ indexConfiguration.readPropertyConfiguration(this.indexedProperties);
+ }
this.index = new Index(indexConfiguration, getLogger(),
"properties " + this.scope);
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org