NPE fix for Thread name (just commited yesterday, sorry)

pull/1/head
orbiter 11 years ago
parent a2e1f104f6
commit d68e5ad0c4

@ -319,7 +319,7 @@ public class RemoteSearch extends Thread {
Thread solr = new Thread() {
@Override
public void run() {
this.setName("RemoteSearch.solrRemoteSearch(" + solrQuery.getQuery() + " to " + targetPeer.hash + ")");
this.setName("RemoteSearch.solrRemoteSearch(" + solrQuery.getQuery() + " to " + (targetPeer == null ? "myself" : targetPeer.hash) + ")");
int urls = 0;
try {
event.oneFeederStarted();

Loading…
Cancel
Save