Skip to content

Commit

Permalink
NullPointerexception at org.elasticsearch.action.get.GetResponse.sour…
Browse files Browse the repository at this point in the history
…ceAsString, closes #68
  • Loading branch information
kimchy committed Mar 18, 2010
1 parent cd2090b commit fc3a805
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -107,6 +107,9 @@ public byte[] source() {
* The source of the document (as a string).
*/
public String sourceAsString() {
if (source == null) {
return null;
}
return Unicode.fromBytes(source);
}

Expand Down

0 comments on commit fc3a805

Please sign in to comment.