LUCENE-3795: return empty array for TwoDoublesStrategy

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1301206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2012-03-15 21:16:04 +00:00
parent faca588e93
commit 2d28a5e9a7
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class TwoDoublesStrategy extends SpatialStrategy<TwoDoublesFieldInfo> {
if( !ignoreIncompatibleGeometry ) {
throw new IllegalArgumentException( "TwoDoublesStrategy can not index: "+shape );
}
return null;
return new IndexableField[0]; // nothing (solr does not support null)
}
@Override