Fix su getValue nel caso di integer in gest setup

This commit is contained in:
Giuseppe Scorrano 2021-04-16 18:33:16 +02:00
parent e30273fe42
commit 10e748b9d4

View File

@ -312,6 +312,8 @@ public class SettingsManager {
return clazz.cast(value.getValue()); return clazz.cast(value.getValue());
} else if(clazz == Boolean.class) { } else if(clazz == Boolean.class) {
return clazz.cast("S".equalsIgnoreCase(value.getValue())); return clazz.cast("S".equalsIgnoreCase(value.getValue()));
} else if(clazz == Integer.class) {
return clazz.cast(Integer.parseInt(value.getValue()));
} else return null; } else return null;
} }