Skip to content

Commit

Permalink
Merge pull request #6409 from TheThingsNetwork/fix/nil-location
Browse files Browse the repository at this point in the history
Support gateways without location
  • Loading branch information
adriansmares authored Jul 26, 2023
2 parents 33a4146 + a8b3915 commit 851e8b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/applicationserver/io/packages/loragls/v3/api/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ func (r *RxMetadata) FromProto(pb *ttnpb.RxMetadata) error {
return err
}

r.Location = &RxMDLocation{}
if err := r.Location.FromProto(pb.Location); err != nil {
return err
if pb.Location != nil {
r.Location = &RxMDLocation{}
if err := r.Location.FromProto(pb.Location); err != nil {
return err
}
}

r.AntennaIndex = pb.AntennaIndex
Expand Down

0 comments on commit 851e8b5

Please sign in to comment.