diff --git a/pmd/src/net/sourceforge/pmd/AbstractPropertySource.java b/pmd/src/net/sourceforge/pmd/AbstractPropertySource.java index d88b0a5aa1..f3f764e813 100644 --- a/pmd/src/net/sourceforge/pmd/AbstractPropertySource.java +++ b/pmd/src/net/sourceforge/pmd/AbstractPropertySource.java @@ -78,7 +78,7 @@ public abstract class AbstractPropertySource { public boolean hasDescriptor(PropertyDescriptor descriptor) { if (propertyValuesByDescriptor.isEmpty()) { - getPropertiesByPropertyDescriptor(); // compute it + propertyValuesByDescriptor = getPropertiesByPropertyDescriptor(); } return propertyValuesByDescriptor.containsKey(descriptor);