Page MenuHomeFeedback Tracker

Using undefined variable as a config entry does not generate an error
New, WishlistPublic

Description

When using an undefined variable for reading config values, an "undefined variable error" is not generated. Instead, nil is returned.

Details

Legacy ID
456014959
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Run this line:
getnumber (configfile >> "CfgAmmo" >> _projectileClass >> "airFriction");

As _projectileClass is an undefined variable, an "undefined variable" error is expected, but it is missing.

Additional Information

Fixing this would make finding script errors much easier.

Event Timeline

galzohar edited Steps To Reproduce. (Show Details)Nov 30 2013, 2:35 PM
galzohar edited Additional Information. (Show Details)
galzohar set Category to Scripting.
galzohar set Reproducibility to Always.
galzohar set Severity to None.
galzohar set Resolution to Open.
galzohar set Legacy ID to 456014959.May 7 2016, 5:33 PM
Bohemia added a subscriber: AD2001.Nov 30 2013, 2:35 PM