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

[Android] Protect NRE setting SwipeItem Drawable #12481

Merged
merged 1 commit into from
Oct 22, 2020
Merged

[Android] Protect NRE setting SwipeItem Drawable #12481

merged 1 commit into from
Oct 22, 2020

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

I have not managed to reproduce the issue. Checking the code, the drawable that define the SwipeItem icon can become null. This PR has changes to protect this possible NRE.

Issues Resolved

API Changes

None

Platforms Affected

  • Android

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@rmarinho rmarinho merged commit 6adefe6 into 5.0.0 Oct 22, 2020
@rmarinho rmarinho deleted the fix-12458 branch October 22, 2020 15:40
@samhouts samhouts added this to the 5.0.0 milestone Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] NullReferenceException at Xamarin.Forms.Platform.Android.SwipeViewRenderer.CreateSwipeItem
3 participants