Skip to content

Commit 09a3cc0

Browse files
committed
Fix NPE when removing invalid config.
1 parent 033af31 commit 09a3cc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/groovy/org/prebid/server/functional/testcontainers/PbsServiceFactory.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class PbsServiceFactory {
5050

5151
static void removeContainer(Map<String, String> config) {
5252
def container = containers.get(config)
53+
if (container == null) {
54+
throw new IllegalArgumentException("Unknown or invalid container config: " + config)
55+
}
5356
container.stop()
5457
containers.remove(config)
5558
}

0 commit comments

Comments
 (0)