AntiPattern
Null-Unsafe Validation Flow
null-unsafe-validation-flow
Validation paths and async/lambda logic rely on values that may be null or out of scope, so checks like String::isEmpty throw NPEs and exception handling misclassifies failures, breaking downstream CompletableFuture stages and testability assumptions.