CLOUDSTACK-7583: Fix NPE caused by previous commit

This commit is contained in:
Wido den Hollander 2014-11-12 16:54:20 +01:00
parent 69ee01af9d
commit 95daa14e2a
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
/* URI to send statistics to. Currently only Graphite is supported */
String externalStatsUri = configs.get("stats.output.uri");
if (externalStatsUri != null) {
if (externalStatsUri != null && !externalStatsUri.equals("")) {
try {
URI uri = new URI(externalStatsUri);
String scheme = uri.getScheme();