Skip to content

Commit

Permalink
Fix NPE when querying for time annotations
Browse files Browse the repository at this point in the history
Author: @franklinhu
Fixes #121
URL: #121
  • Loading branch information
Franklin Hu committed Aug 24, 2012
1 parent 15d4cee commit 238816e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class App(config: ZipkinWebConfig, client: gen.ZipkinQuery.FinagledClient) exten
client.getTraceIdsBySpanName(r.serviceName, r.spanName, r.endTimestamp, r.limit, r.order)
}
case r: AnnotationQueryRequest => {
client.getTraceIdsByAnnotation(r.serviceName, r.annotation, null, r.endTimestamp, r.limit, r.order)
client.getTraceIdsByAnnotation(r.serviceName, r.annotation, ByteBuffer.wrap("".getBytes), r.endTimestamp, r.limit, r.order)
}
case r: KeyValueAnnotationQueryRequest => {
client.getTraceIdsByAnnotation(r.serviceName, r.key, ByteBuffer.wrap(r.value.getBytes), r.endTimestamp, r.limit, r.order)
Expand Down

0 comments on commit 238816e

Please sign in to comment.