Closed PabstMirror closed 3 years ago
Describe the bug Null config causes fatal error on config commands (isClass, isText, getNumber ...)
isClass
isText
getNumber
To Reproduce Steps to reproduce the behavior: .\sqfvm.exe --automated --sqf "isClass configNull;"
.\sqfvm.exe --automated --sqf "isClass configNull;"
Executing... -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [ERR] [L1|C0|__commandline] Provided value is null. [FAT] [L1|C0|__commandline] Stacktrace:< 1 of 1> [L1|C0|__commandline] [missionNamespace] [SCOPENAME-EMPTY] isClass configNull; ^^^^^^^
Expected behavior
isClass configNull
false
getNumber configNull
0
getText (configFile >> "doesNotExist")
""
isNull configNull
true
Is the expected behavior cross-checked with arma?
Describe the bug Null config causes fatal error on config commands (
isClass
,isText
,getNumber
...)To Reproduce Steps to reproduce the behavior:
.\sqfvm.exe --automated --sqf "isClass configNull;"
Expected behavior
isClass configNull
- Expected:false
, gives fatal errorgetNumber configNull
- Expected:0
, gives fatal errorgetText (configFile >> "doesNotExist")
- Expected""
, gives fatal errorisNull configNull
- Expected:true
, this does work correctly!