This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git
The following commit(s) were added to refs/heads/master by this push:
new 499548072f FELIX-6510 : NPE within HealthCheck BundlesStartedCheck for
bundle without symbolic name
499548072f is described below
commit 499548072f31a962795d0531deaded2a2c27258e
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Wed Jul 12 09:04:54 2023 +0200
FELIX-6510 : NPE within HealthCheck BundlesStartedCheck for bundle without
symbolic name
---
.../java/org/apache/felix/hc/generalchecks/BundlesStartedCheck.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/healthcheck/generalchecks/src/main/java/org/apache/felix/hc/generalchecks/BundlesStartedCheck.java
b/healthcheck/generalchecks/src/main/java/org/apache/felix/hc/generalchecks/BundlesStartedCheck.java
index c71c23241c..99852e922c 100644
---
a/healthcheck/generalchecks/src/main/java/org/apache/felix/hc/generalchecks/BundlesStartedCheck.java
+++
b/healthcheck/generalchecks/src/main/java/org/apache/felix/hc/generalchecks/BundlesStartedCheck.java
@@ -95,6 +95,9 @@ public class BundlesStartedCheck implements HealthCheck {
int inactiveCount = 0;
for (Bundle bundle : bundles) {
String bundleSymbolicName = bundle.getSymbolicName();
+ if (bundleSymbolicName == null) {
+ bundleSymbolicName = "";
+ }
int bundleState = bundle.getState();
if (!includesRegex.matcher(bundleSymbolicName).matches()) {