return empty model if JMX not available instead of throwing exception

This commit is contained in:
nsingh
2018-08-30 12:36:07 +02:00
parent f776fae57d
commit 0ffeac4066

View File

@@ -230,7 +230,7 @@ public abstract class AbstractSpringBootApp implements SpringBootApp {
return cachedBeansModel;
} else {
throw new Exception("not getting any beans from app");
return LiveBeansModel.builder().build();
}
});