Skip to content

Commit

Permalink
as: Support gateways without location
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansmares committed Jul 26, 2023
1 parent 19b668c commit fa79c3b
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 fa79c3b

Please sign in to comment.