mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7583: Fix NPE caused by previous commit
This commit is contained in:
parent
69ee01af9d
commit
95daa14e2a
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue