diff --git a/src/main/java/com/seleniumboot/cucumber/CucumberHooks.java b/src/main/java/com/seleniumboot/cucumber/CucumberHooks.java index bd4f00a..0b488b6 100644 --- a/src/main/java/com/seleniumboot/cucumber/CucumberHooks.java +++ b/src/main/java/com/seleniumboot/cucumber/CucumberHooks.java @@ -219,7 +219,7 @@ private static void applyRetryTag(Scenario scenario) { static void checkCucumberQuarantine(Scenario scenario) { try { com.seleniumboot.config.SeleniumBootConfig.Quarantine cfg = - SeleniumBootContext.getConfig().getQuarantine(); + SeleniumBootContext.isInitialized() ? SeleniumBootContext.getConfig().getQuarantine() : null; if (cfg != null && !cfg.isEnabled()) return; // ── 1. In-file tag check (user adds @quarantine to the scenario) ──