From 5c20c7bf1e8226d2f287cfb992d0fca1ed594e11 Mon Sep 17 00:00:00 2001 From: Lior Bondarevski Date: Wed, 24 Aug 2022 13:20:52 +0300 Subject: [PATCH] Fix possible null-dref --- x/compute/internal/keeper/keeper.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x/compute/internal/keeper/keeper.go b/x/compute/internal/keeper/keeper.go index e23f87845..edbaad327 100644 --- a/x/compute/internal/keeper/keeper.go +++ b/x/compute/internal/keeper/keeper.go @@ -235,6 +235,10 @@ func (k Keeper) GetSignerInfo(ctx sdk.Context, signer sdk.AccAddress) ([]byte, s } signatures, err := protobufTx.GetSignaturesV2() + if err != nil { + return nil, 0, nil, nil, nil, sdkerrors.Wrap(types.ErrSigFailed, fmt.Sprintf("Unable to get signatures v2: %s", err.Error())) + } + var signMode sdktxsigning.SignMode switch signData := signatures[pkIndex].Data.(type) { case *sdktxsigning.SingleSignatureData: