aboutsummaryrefslogtreecommitdiff
path: root/.dev-suite
diff options
context:
space:
mode:
authorMichael Gattozzi <mgattozzi@gmail.com>2020-01-05 23:19:42 -0500
committerMichael Gattozzi <mgattozzi@gmail.com>2020-01-05 23:19:42 -0500
commit7dfa1b8dc9fb6d1fef974e7c29a32bff3146c71d (patch)
treedfa9ea68e30ca43cb99a1043ff37315e7a21eb85 /.dev-suite
parent03238ddf40330db173b00439139e6e74958b7eb1 (diff)
Fix the ticket tui so it does not panic
The tui for ticket uses indexing in order to have quicker unchecked access into data structures for the data needed that gets displayed in the tui. However, you can't index empty data. We add a check for this in places that expect data to exist so that nothing will cause a panic. We also add fixes to handle the fact that you can't divide by zero in our index modifying logic when pressing the left/right/up/down arrow keys. With this the tui shouldn't panic anymore and can work in an empty state. Closes: 4c37e800-2e38-11ea-b6e0-32f54a3ad7cd 'Having no tickets causes the TUI to crash'
Diffstat (limited to '.dev-suite')
-rw-r--r--.dev-suite/ticket/closed/having-no-tickets-causes-the-tui-to-crash.toml (renamed from .dev-suite/ticket/open/having-no-tickets-causes-the-tui-to-crash.toml)2
1 files changed, 1 insertions, 1 deletions
diff --git a/.dev-suite/ticket/open/having-no-tickets-causes-the-tui-to-crash.toml b/.dev-suite/ticket/closed/having-no-tickets-causes-the-tui-to-crash.toml
index e4ffd42..960ee5d 100644
--- a/.dev-suite/ticket/open/having-no-tickets-causes-the-tui-to-crash.toml
+++ b/.dev-suite/ticket/closed/having-no-tickets-causes-the-tui-to-crash.toml
@@ -1,5 +1,5 @@
title = 'Having no tickets causes the TUI to crash'
-status = 'Open'
+status = 'Closed'
id = '4c37e800-2e38-11ea-b6e0-32f54a3ad7cd'
assignees = [[
'64c00ccc-761e-4484-86ac-904e461bb300',