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

Fix: Check length of task before access #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthias-mayr
Copy link
Member

There are circumstances under which the tasks list is empty, but will be accessed. E.g. when restarting the skill manager, but not the GUI.

There are circumstances under which the tasks list is
empty, but will be accessed. E.g. when restarting the skill manager,
but not the GUI.
@frvd
Copy link
Contributor

frvd commented Jun 17, 2023

So this will throw an indexerror now, right? Maybe it should be catched and throw a more meaningful error

@frvd
Copy link
Contributor

frvd commented Jun 17, 2023

Sorry, i misread the commit. What does it mean to return -1 instead of a task ? It seems logically wrong

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

Successfully merging this pull request may close these issues.

2 participants