Skip to content
Browse files

removed NPE in GWT code when working with the JSON result for a query…

… (possibly a consequence of the annotations being stored inside the 'tsdb' table)
  • Loading branch information...
1 parent 6b88964 commit 64f99e5269ea10ab813dd3d99f7208c04712a6dd @p-goetz p-goetz committed with bsjaekel Apr 10, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/tsd/client/QueryUi.java
View
6 src/tsd/client/QueryUi.java
@@ -1019,8 +1019,10 @@ public void got(final JSONValue json) {
graph.setUrl(uri + "&png");
graph.setVisible(true);
- msg += result.get("points").isNumber() + " points retrieved, "
- + nplotted + " points plotted";
+ if (result.get("points") != null && result.get("points").isNumber() != null) {
+ msg += result.get("points").isNumber() + " points retrieved, "
+ + nplotted + " points plotted";
+ }
} else {
graph.setVisible(false);
msg += "Your query didn't return anything";

0 comments on commit 64f99e5

Please sign in to comment.
Something went wrong with that request. Please try again.