Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix NPE when querying for time annotations
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.
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.