diff --git a/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java b/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java index 599f0c6fe..6705b00ea 100644 --- a/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java +++ b/core-codemods/src/main/java/io/codemodder/codemods/SensitiveDataLoggingCodemod.java @@ -119,6 +119,9 @@ private static Optional getSingleStatement( @Override public boolean shouldRun() { + if (!service.isServiceAvailable()) { + return false; + } List runs = sarif.rawDocument().getRuns(); return runs != null && !runs.isEmpty() && !runs.get(0).getResults().isEmpty(); }