diff options
author | jonmv <venstad@gmail.com> | 2022-05-02 15:13:54 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-05-02 15:13:54 +0200 |
commit | a1f842db1228b361cdc597cf8ae6158b7552cd17 (patch) | |
tree | 563de8832925284d32053ff2295ebffb4983e4c1 /controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java | |
parent | 7116a75fb9af0f5ed3b3b6d80e8d2dfe2890c182 (diff) |
Handle null header value
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java index 751f6674128..0c9ff7863bd 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java @@ -141,7 +141,9 @@ public class TestPackage { try { byte[] testsJar = ZipEntries.readFile(testPackage, "components/" + path, 1 << 30); Manifest manifest = new JarInputStream(new ByteArrayInputStream(testsJar)).getManifest(); - for (String suite : manifest.getMainAttributes().getValue("X-JDisc-Test-Bundle-Categories").split(",")) + String bundleCategoriesHeader = manifest.getMainAttributes().getValue("X-JDisc-Test-Bundle-Categories"); + if (bundleCategoriesHeader == null) continue; + for (String suite : bundleCategoriesHeader.split(",")) if ( ! suite.isBlank()) switch (suite.trim()) { case "SystemTest": suites.add(system); break; case "StagingSetup": suites.add(staging_setup); break; |