Prerequisites
Description
In certain conditions, the function ALiVE_fnc_ProfileNameSpaceLoad throws an error and returns an isNil value.
Steps to Reproduce
- start a new scenario with local data persistence (so basically
isNil (profileNamespace getVariable _mission))
- call
"my_var" call ALiVE_fnc_ProfileNameSpaceLoad -> returns false
- server save scenario
- call
"my_var" call ALiVE_fnc_ProfileNameSpaceLoad -> ALiVE_fnc_HashGet throws an error
- call
["my_var", true] call ALiVE_fnc_ProfileNameSpaceSave then call "my_var" call ALiVE_fnc_ProfileNameSpaceLoad -> returns true
Expected behavior: [What you expected to happen]
Step 4 should not throw an error. It might be OK to return false like in step 2 (the case with no initialized profile data)
Actual behavior: [What actually happened]
Step 4 throws an error and the function ALiVE_fnc_ProfileNameSpaceLoad, which it should not.