Page MenuHomeFeedback Tracker

BIS_fnc_param causes recurring script bug for index -1
Closed, ResolvedPublic

Description

Calling
[[], -1, objNull] call BIS_fnc_param
will continuously generate a script error message. See Additional Info for message.

Expected result is objNull.

These similar calls will not generate any error:

  • param [-1, objNull]

[[], 0, objNull] call BIS_fnc_param

Details

Legacy ID
4016518931
Severity
None
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce

Go to Debug Console.
Watch the following code:
[[], -1, objNull] call BIS_fnc_param

Observe continuous error messages in RPT log file.

Additional Information

Error message generated:

2648 18:41:56 Error in expression < if (count _params > _id) then {_params select _id} else {nil};
2649
2650
2651 if (_thisCount>
2652 18:41:56 Error position: <select _id} else {nil};
2653
2654
2655 if (_thisCount>
2656 18:41:56 Error Zero divisor
2657 18:41:56 File A3\functions_f\Debug\fn_param.sqf, line 46

Event Timeline

Dr_Eyeball edited Additional Information. (Show Details)
Dr_Eyeball set Category to Scripting.
Dr_Eyeball set Reproducibility to Always.
Dr_Eyeball set Severity to None.
Dr_Eyeball set Resolution to Fixed.
Dr_Eyeball set Legacy ID to 4016518931.May 8 2016, 1:25 PM
commy2 added a subscriber: commy2.May 8 2016, 1:25 PM

This should be fixed. Please confirm.

BIS_fnc_KK closed this task as Resolved.Dec 11 2016, 12:21 PM
BIS_fnc_KK updated the task description. (Show Details)
BIS_fnc_KK edited Steps To Reproduce. (Show Details)
BIS_fnc_KK edited Additional Information. (Show Details)
BIS_fnc_KK set Operating System to Windows 7.