Skip to content

Commit

Permalink
ingest: fix for npe
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Sep 7, 2024
1 parent e834c8f commit 73d6600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingest/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func (r *Router) WriteKeyStreamLocator(loc *StreamCredentials, _ bool) *StreamWi
func (r *Router) SlugStreamLocator(loc *StreamCredentials, s2sEndpoint bool) *StreamWithDestinations {
if loc.Slug != "" {
stream := r.repository.GetData().GetStreamById(loc.Slug)
if !stream.Stream.Strict {
if stream != nil && !stream.Stream.Strict {
loc.IngestType = utils.Ternary(s2sEndpoint, IngestTypeS2S, IngestTypeBrowser)
return stream
}
Expand Down

0 comments on commit 73d6600

Please sign in to comment.