Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void testEmptyValue() {
SolrInputDocument finalDoc = doc;
expectThrows(AssertionError.class, () -> processAdd("add-fields-no-run-processor", finalDoc));

expectThrows(AssertionError.class, () -> processAdd("add-fields-no-run-processor", new SolrInputDocument(null , null)));
expectThrows(NullPointerException.class, () -> processAdd("add-fields-no-run-processor", new SolrInputDocument(null , null)));
}

public void testSingleField() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Objects;

/**
*
Expand All @@ -32,7 +33,7 @@ public class SolrInputField implements Iterable<Object>, Serializable

public SolrInputField( String n )
{
this.name = n;
this.name = Objects.requireNonNull(n);
}

//---------------------------------------------------------------
Expand Down Expand Up @@ -161,7 +162,7 @@ public String getName() {
}

public void setName(String name) {
this.name = name;
this.name = Objects.requireNonNull(name);
}

@Override
Expand Down