Skip to content
This repository was archived by the owner on Aug 29, 2020. It is now read-only.

Fix crash if, for any reason, there are no processes to list#102

Open
CosmicHorrorDev wants to merge 1 commit intocjbassi:masterfrom
CosmicHorrorDev:handle-no-processes
Open

Fix crash if, for any reason, there are no processes to list#102
CosmicHorrorDev wants to merge 1 commit intocjbassi:masterfrom
CosmicHorrorDev:handle-no-processes

Conversation

@CosmicHorrorDev
Copy link

@CosmicHorrorDev CosmicHorrorDev commented Jul 23, 2020

In #99 there was an issue where self.procs was occasionally empty causing the program to crash when trying to index for the selected process. This is likely due to some issue in psutil since the process list is provided by the psutil::process::ProcessCollector and shouldn't ever reasonably be empty. This also sets up the program better for if process filtering is established since a filter could easily yield no processes and would still have to display without crashing.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant