-
Notifications
You must be signed in to change notification settings - Fork 301
Open
Labels
bugSomething is not working, or not working as intendedSomething is not working, or not working as intended
Description
let sender_profile = {
let txn = state.ndb.lookup_profile(nostr_event.pubkey)
let profile = txn?.unsafeUnownedValue?.profile
let picture = ((profile?.picture.map { URL(string: $0) }) ?? URL(string: robohash(nostr_event.pubkey)))! // <-- Force unwrap error happens here
return ProfileBuf(picture: picture,
name: profile?.name,
display_name: profile?.display_name,
nip05: profile?.nip05)
}()As of the past two weeks leading up to 2025-07-16, this is the 4th most common crash.
We should update this portion of code to handle nil safely.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething is not working, or not working as intendedSomething is not working, or not working as intended