Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix sync errors for card creation with the same uri from different sources" #36131

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

Pytal
Copy link
Member

@Pytal Pytal commented Jan 13, 2023

Revert #32057

As discussed in #36110

…ferent backends"

This reverts commit ddcee3d.

Signed-off-by: Christopher Ng <chrng8@gmail.com>
@@ -274,7 +274,7 @@
$allCards = $this->backend->getCards($systemAddressBook['id']);
foreach ($allCards as $card) {
$vCard = Reader::read($card['carddata']);
$uid = isset($vCard->{'X-NEXTCLOUD-UID'}) ? $vCard->{'X-NEXTCLOUD-UID'}->getValue() : $vCard->UID->getValue();
$uid = $vCard->UID->getValue();

Check notice

Code scanning / Psalm

PossiblyNullReference

Cannot call method getValue on possibly null value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants