Skip to content

Apache Lucene open-source search software

Fix the heavy committing error :(

Uwe Schindlerfbca69baa0aa
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 <code>null</code> 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