Skip to content

Faulty null check logic in haxe.Template #4217

Closed
@Simn

Description

My null-checker complains about these:

https://github.com/HaxeFoundation/haxe/blob/development/std/haxe/Template.hx#L315
https://github.com/HaxeFoundation/haxe/blob/development/std/haxe/Template.hx#L321

if( p == null || p.s )
    throw p.p;
if( p2 == null || p2.p != ")" )
    throw p2.p;

If either p or p2 actually are null, the condition holds and the access on the p field is going to fail.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions