Skip to content

Commit

Permalink
Fix nil pointer deref introduced in 4.6.0 by introducing guard around
Browse files Browse the repository at this point in the history
potentially `nil` currSection

This addresses #475
  • Loading branch information
cosgroveb authored and dlvhdr committed Nov 9, 2024
1 parent 2358d9b commit fcc3664
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}

case execProcessFinishedMsg, tea.FocusMsg:
cmds = append(cmds, currSection.FetchNextPageSectionRows()...)
if currSection != nil {
cmds = append(cmds, currSection.FetchNextPageSectionRows()...)
}

case tea.WindowSizeMsg:
m.onWindowSizeChanged(msg)
Expand Down

0 comments on commit fcc3664

Please sign in to comment.