Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Fix ingestSignerEffects
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekn committed Nov 23, 2017
1 parent 2f8c857 commit 95b7a37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.com/stellar/horizon/ingest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
// Scripts, that have yet to be ported to this codebase can then be leveraged
// to re-ingest old data with the new algorithm, providing a seamless
// transition when the ingested data's structure changes.
CurrentVersion = 9
CurrentVersion = 11
)

// Cursor iterates through a stellar core database's ledgers
Expand Down
7 changes: 7 additions & 0 deletions src/github.com/stellar/horizon/ingest/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,13 @@ func (is *Session) ingestSignerEffects(effects *EffectIngestion, op xdr.SetOptio
return
}

// Quickfix for:
// > invalid memory address or nil pointer dereference
// near `beforeAccount := be.Data.MustAccount()`
if be == nil || ae == nil {
return
}

beforeAccount := be.Data.MustAccount()
afterAccount := ae.Data.MustAccount()

Expand Down

0 comments on commit 95b7a37

Please sign in to comment.