Skip to content

Commit 95daa14

Browse files
committed
CLOUDSTACK-7583: Fix NPE caused by previous commit
1 parent 69ee01a commit 95daa14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/server/StatsCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private void init(Map<String, String> configs) {
260260

261261
/* URI to send statistics to. Currently only Graphite is supported */
262262
String externalStatsUri = configs.get("stats.output.uri");
263-
if (externalStatsUri != null) {
263+
if (externalStatsUri != null && !externalStatsUri.equals("")) {
264264
try {
265265
URI uri = new URI(externalStatsUri);
266266
String scheme = uri.getScheme();

0 commit comments

Comments
 (0)