Skip to content

Commit

Permalink
Merge pull request #132 from algorandfoundation/fix/incentive-logic-n…
Browse files Browse the repository at this point in the history
…il-pointer-deref-bugfix

Fix: nil pointer dereference when adding new accounts
  • Loading branch information
PhearZero authored Jan 23, 2025
2 parents aaf752c + fe79792 commit 75c883f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/modals/transaction/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (m *ViewModel) ShouldAddIncentivesFee() bool {
// 2) online keyreg
// 3) protocol supports incentives
// 4) account is not already incentives eligible
return m.State != nil && !m.State.IncentivesDisabled && !m.Active && m.IsIncentiveProtocol() && !m.Account().IncentiveEligible
return m.State != nil && !m.State.IncentivesDisabled && !m.Active && m.IsIncentiveProtocol() && m.Account() != nil && !m.Account().IncentiveEligible
}

func (m *ViewModel) GetControlText() string {
Expand Down

0 comments on commit 75c883f

Please sign in to comment.