We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e71d8c0 commit 2677059Copy full SHA for 2677059
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityMigrations.java
@@ -372,7 +372,10 @@ private void incrementAttemptCount(ProjectId project) {
372
}
373
374
private void decrementAttemptCount(ProjectId project) {
375
- taskSubmissionAttemptCounter.computeIfAbsent(project, ignore -> new AtomicInteger(0)).decrementAndGet();
+ final AtomicInteger counter = taskSubmissionAttemptCounter.get(project);
376
+ if (counter != null) {
377
+ counter.decrementAndGet();
378
+ }
379
380
381
0 commit comments