Skip to content

Commit b247591

Browse files
committed
feat jvm patch
1 parent bc2c159 commit b247591

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java

+4
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,10 @@ public void onLimit(LimitConfig config) {
553553

554554
@Override
555555
public void onPatch(PatchConfig config) {
556+
if (config == null || config.getPatches() == null || config.getPatches().length == 0) {
557+
SmithLogger.logger.info("patch may not be download, so not update heartbeat");
558+
return ;
559+
}
556560
for (Patch patch : config.getPatches()) {
557561
SmithLogger.logger.info("install patch: " + patch.getClassName());
558562

0 commit comments

Comments
 (0)