From fbca69baa0aa345846b1f6c9352bfb350b2a4b3b Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Fri, 6 Nov 2009 04:29:24 +0000 Subject: [PATCH] Fix the heavy committing error :( git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@833297 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/SortField.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/lucene/search/SortField.java b/src/java/org/apache/lucene/search/SortField.java index eac4dfa00d5..879d7dcc7a5 100644 --- a/src/java/org/apache/lucene/search/SortField.java +++ b/src/java/org/apache/lucene/search/SortField.java @@ -106,8 +106,6 @@ implements Serializable { // Used for CUSTOM sort private FieldComparatorSource comparatorSource; - private boolean useLegacy = false; // remove in Lucene 3.0 - /** Creates a sort by terms in the given field with the type of term * values explicitly given. * @param field Name of field to sort by. Can be null if @@ -357,7 +355,8 @@ implements Serializable { // field must be interned after reading from stream private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { in.defaultReadObject(); - field = StringHelper.intern(field); + if (field != null) + field = StringHelper.intern(field); } /** Returns the {@link FieldComparator} to use for