Sometimes rule squid:S2259 is false positive with method in whitelist

private void convertEntityToContractVoWithTaskElement(
            Map<Long, ContractDefContextEntity> defCttEntityMap) {
        if (defCttEntityMap == null) {

        }
        //获取流程定义中的extra内容
        if (!CollectionUtils.isEmpty(defCttEntityMap)) {
            defCttEntityMap.get("123");
        }
    }

The complete method is like this. I found that when remove the line “defCttEntityMap == null”, this NPE disappear. Hmm …