diff --git a/utils/config.simba b/utils/config.simba index 8329bb8f..f650c316 100644 --- a/utils/config.simba +++ b/utils/config.simba @@ -13,7 +13,7 @@ begin if not acceptNull then Exit(Self.getBoolean(key)); - Result := Self.has(key) and not Self.isNull(key) and Self.getBoolean(key); + Result := (Self <> nil) and Self.has(key) and not Self.isNull(key) and Self.getBoolean(key); end; function TJSONObject.put(key: string; Value: Boolean): TJSONObject; constref; override; diff --git a/utils/settings.simba b/utils/settings.simba index 938dde64..60c19d8c 100644 --- a/utils/settings.simba +++ b/utils/settings.simba @@ -287,6 +287,9 @@ end; var WLSettings: TWLSettings; +procedure TSRL.Setup(); override; begin WLSettings.Setup('wasplib'); + + inherited; end;