infohash may be null

pull/4/head
Zlatin Balevsky 2019-06-06 21:40:44 +01:00
parent f90beb8e3d
commit 3e49b0ec66
1 changed files with 2 additions and 1 deletions

View File

@ -127,6 +127,7 @@ abstract class Connection implements Closeable {
query.uuid = e.searchEvent.getUuid()
query.firstHop = e.firstHop
query.keywords = e.searchEvent.getSearchTerms()
if (e.searchEvent.searchHash != null)
query.infohash = Base64.encode(e.searchEvent.searchHash)
query.replyTo = e.replyTo.toBase64()
if (e.originator != null)