Add null check in FlexibleConfigImpl.get
@@ -85,6 +85,11 @@ public boolean remove(SimpleUri id) {
@SuppressWarnings("unchecked")
public <V> Setting<V> get(SimpleUri id, Class<V> valueType) {
Setting setting = settings.get(id);
+
+ if (setting == null) {
+ return null;
+ }
+
Class settingValueClass = setting.getValueClass();
if (!settingValueClass.equals(valueType)) {
