Skip to content

Filter by command error in Windows #3

@geasi

Description

@geasi

Hi,

I'm getting an undefined error when trying to query processes with a determined command.
The problem is that psaux try to call indexOf of a null property value:

valid = ps[key].indexOf(q[key].replace('~', '')) > -1;

In my case, key is "command" and ps[key] contains null as it's value.
This occurs in line 126 of psaux,js.
The above code solved my issue:

if (ps[key]) { valid = ps[key].indexOf(q[key].replace('~', '')) > -1; } else { valid = false; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions