Let's say I have a block of code like this:
Map<String, Object> mappy =
(Map<String, Object>)pExtraParameters.get(ServiceClientConstants.EXTRA_PARAMETERS);
if (pSSResponseBean!=null) {
mappy.put(AddressResearchContext.CSI_RESPONSE_BEAN, (AddressNotFoundResponseBean)pSSResponseBean); // this line may throw null pointer
}
Is there a Sonar, Findbugs, or PMD rule that will flag "mappy" as potentially null? Apparently CodePro flags this, and I need to provide something similar, if possible.