fix(xep): Fix null-deference
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
9666557655
commit
d4416c8a47
@ -147,10 +147,11 @@ class UserAvatarManager extends XmppManagerBase {
|
||||
return Result(UnknownAvatarError());
|
||||
}
|
||||
|
||||
final metadata = results.first.payload
|
||||
.firstTag('metadata', xmlns: userAvatarMetadataXmlns)!;
|
||||
return Result(
|
||||
metadata.findTags('info').map(UserAvatarMetadata.fromXML).toList(),
|
||||
results.first.payload
|
||||
.findTags('info')
|
||||
.map(UserAvatarMetadata.fromXML)
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user