Skip to content

Hashes - Fix nil throwing errors in scheduled environment#1515

Merged
commy2 merged 1 commit intoCBATeam:masterfrom
BaerMitUmlaut:fix-json-scheduled
Dec 18, 2021
Merged

Hashes - Fix nil throwing errors in scheduled environment#1515
commy2 merged 1 commit intoCBATeam:masterfrom
BaerMitUmlaut:fix-json-scheduled

Conversation

@BaerMitUmlaut
Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • Fixes popup error when running CBA_fnc_encodeJSON on an object with nil variables

Repro:

private _foo = call CBA_fnc_createNamespace;
_foo setVariable ["bar", nil];
_foo spawn CBA_fnc_encodeJSON;

Comment thread addons/hashes/fnc_encodeJSON.sqf
@PabstMirror PabstMirror added this to the 3.15.7 milestone Oct 27, 2021
@commy2
Copy link
Copy Markdown
Contributor

commy2 commented Oct 27, 2021

OP code should be added to unit test.

@commy2 commy2 merged commit 6ddc6e8 into CBATeam:master Dec 18, 2021
@jonpas jonpas changed the title Fix nil throwing errors in scheduled environment Hashes - Fix nil throwing errors in scheduled environment Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants