Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter by command error in Windows #3

Open
geasi opened this issue Apr 2, 2018 · 0 comments
Open

Filter by command error in Windows #3

geasi opened this issue Apr 2, 2018 · 0 comments

Comments

@geasi
Copy link

geasi commented Apr 2, 2018

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; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant