fix: DetectProperties.getAllProperties: make sure a field's type is DetectProperty before processing it as a property
@@ -1723,7 +1723,7 @@ public class DetectProperties {
List<Property> properties = new ArrayList<>();
Field[] allFields = DetectProperties.class.getDeclaredFields();
for (Field field : allFields) {
- if (!field.getType().equals(String.class)) {
+ if (field.getType().equals(DetectProperty.class)) {
Object property = field.get(Property.class);
DetectProperty detectProperty = (DetectProperty) property;
properties.add(convertDetectPropertyToProperty(detectProperty));
