Possible bug when using fields=... on arrays

See gist:

produces:
{
error: "NullPointerException[null]",
status: 500
}

Is this a bug?

thanks

Barnaby

I've submitted a pull request for this:

On Feb 28, 4:24 pm, barnybug barny...@googlemail.com wrote:

See gist:gist:1933431 · GitHub

produces:
{
error: "NullPointerException[null]",
status: 500

}

Is this a bug?

thanks

Barnaby

Cool, I will push fix similar to what you suggested (just checking to null in the writeValue so it applies to all cases). Here is the opened issue: NullPointerException when asking for null valued json field when fetching search request · Issue #1749 · elastic/elasticsearch · GitHub.

On Wednesday, February 29, 2012 at 1:27 PM, barnybug wrote:

I've submitted a pull request for this:
Issue mentioned on list "Possible bug when using fields=... on arrays" by barnybug · Pull Request #1746 · elastic/elasticsearch · GitHub

On Feb 28, 4:24 pm, barnybug <barny...@googlemail.com (http://googlemail.com)> wrote:

See gist:gist:1933431 · GitHub

produces:
{
error: "NullPointerException[null]",
status: 500

}

Is this a bug?

thanks

Barnaby