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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]