Skip to content

Commit

Permalink
Merge pull request #472 from oozie/next_fix_queryui2
Browse files Browse the repository at this point in the history
Fix #452 Protect the UI from getting stuck when no tags are returned.
  • Loading branch information
manolama committed Apr 1, 2015
2 parents 87927d6 + 402ba24 commit 437ace2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tsd/client/QueryUi.java
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,11 @@ public void got(final JSONValue json) {
}
final MetricForm metric = (MetricForm) widget;
final JSONArray tags = etags.get(i).isArray();
final int ntags = tags.size();
for (int j = 0; j < ntags; j++) {
metric.autoSuggestTag(tags.get(j).isString().stringValue());
// Skip if no tags were associated with the query.
if (null != tags) {
for (int j = 0; j < tags.size(); j++) {
metric.autoSuggestTag(tags.get(j).isString().stringValue());
}
}
}
}
Expand Down

0 comments on commit 437ace2

Please sign in to comment.