mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-27 11:14:59 +00:00
fix(security-scan): guard idempotency check without audit repository
Signed-off-by: bbdu3 <bbdu3@iflytek.com>
This commit is contained in:
parent
6c55d7adf4
commit
28031ca99c
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ public class SecurityScanService {
|
|||
}
|
||||
|
||||
public boolean isTaskAlreadyProcessed(String taskId) {
|
||||
return taskId != null && auditRepository.existsByTaskIdAndScannedAtIsNotNull(taskId);
|
||||
return taskId != null && auditRepository != null
|
||||
&& auditRepository.existsByTaskIdAndScannedAtIsNotNull(taskId);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue