Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Conversation

VladislavAntonyuk
Copy link
Contributor

@VladislavAntonyuk VladislavAntonyuk commented Feb 21, 2022

GravatarImageSource throws exception when offline
Fix Nullable

Description of Bug

Issues Fixed

Behavioral Changes

PR Checklist

  • Has a linked Issue, and the Issue has been approved
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net461</TargetFrameworks>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix build out of the box. netcoreapp2.1 is the end of support

}

static void UpdateStatusBarAppearance(UIWindow window)
static void UpdateStatusBarAppearance(UIWindow? window)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see line 97. window can be null

return Array.Empty<byte>();

return await response.Content.ReadAsByteArrayAsync();
return await response.Content.ReadAsByteArrayAsync();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this return null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like no.
image

Copy link
Contributor

@pictos pictos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general, just some observations

@VladislavAntonyuk VladislavAntonyuk merged commit 2803cb4 into main Feb 21, 2022
@VladislavAntonyuk VladislavAntonyuk deleted the 1770-gravatar-image-source-exception branch February 21, 2022 22:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] GravatarImageSource throws exception when offline
3 participants