Skip to content

ZeroDivisionError exception if UI Automation RangeValue pattern specifies maximum of 0 #2417

@nvaccessAuto

Description

@nvaccessAuto

Reported by jteh on 2012-06-08 07:50
NVDAObjects.UIA.UIA._get_value can throw a !ZeroDivisionError if the !RangeValue pattern is supported but returns a maximum value of 0. While strange, I guess we should probably handle this possibility, since it has been seen in the wild. Also, this documentation suggests a default value of 0.0 for maximum.

We haven't seen this yet, but I'm also wondering whether we need to handle negative values here. I haven't found any documentation yet which specifies whether this is legal or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions