Skip to content

Conversation

@Saadnajmi
Copy link
Collaborator

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

We received an error report of a crash around experimental-avatar. Internally in the native module, [RCTConvert UIImage:] would throw an error if you passed it a value equal to NSNull. This got past the normal nil checks because I guess those don't cover the if(![object isEqual:[NSNull null]]) case.

The fix is to add the NSNull check for the image property. The other properties don't seem to throw errors if they are converted with json that is NSNull.

Verification

Ran the iOS test app, and made sure it didn't throw an error at the Avatar test page.

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

@Saadnajmi Saadnajmi merged commit ef2f330 into microsoft:master Mar 30, 2021
@Saadnajmi Saadnajmi deleted the avatar-fix branch March 30, 2021 19:47
chiuam pushed a commit to chiuam/fluentui-react-native that referenced this pull request Apr 28, 2021
* Add a nil check to AvatarData image

* Change files
HeyImChris pushed a commit that referenced this pull request May 11, 2021
* prototype

* style gradient

* componentize shimmer

* prototype

* style gradient

* Android theme (#613)

* initial android theme

* mapped a lot of colors, updated readme, added to fluent-tester-app

* Change files

* removed unneccessary dependencies

* added android typography

* updated versioning, removed apple specific changes

* making android-theme default for the platform

* update fluent-tester dependency version...

* resolving comments...

* resolving more comments...

Co-authored-by: Tushar Masane <[email protected]>

* 📦 applying package updates ***NO_CI***

* Add repository link for @fluentui/react-native (#649)

* Change files

* Remove change file

* Add repository link

* Change files

* Add a nil check to Avatar image property (#650)

* Add a nil check to AvatarData image

* Change files

* Update Radio Button focus border style to be WCAG 2.1 compliant (#653)

* Change files

* Remove change file

* Update radio button focus border style

* Change files

* Add the rainbow gradient border image test case to experimental avatar (#654)

* Add the rainbow gradient test case

* Change files

* Add apple theme static libraries to NuGet package (#655)

* Add apple theme static libraries to NuGet, add NuGet Publish PR job

* Fix path in nuspec

* Comment out NugetPublish PR Job

* Fix npm publish pipeline (hopefully) (#656)

* fix typos in android-theme

* Change files

* 📦 applying package updates ***NO_CI***

* Android Svg Support  (#652)

* added svg, transformer to android

* base64 svgs do not load, font files do not link

* Change files

* bump package versions manually

* Change files

* upgrade react-native-svg

* Change files

* revert 'bump package versions manually'

* Change files

* 📦 applying package updates ***NO_CI***

* Fix typo in nuspec (#659)

* Fix typo in nuspec

* Comment out NuGet Publish again

* Add Icon support for macOS (#645)

* Add macOS support

* Add link to issue regarding direct SVG imports

* Replace react-native-svg with @microsoft/react-native-svg-desktop

* Use react-native-svg now that it supports macOS

* Upgrade react-native-svg to 12.1.1-0 everywhere

* Update macos podfile

* Change files

* 📦 applying package updates ***NO_CI***

* chore: `rnx-start` is deprecated (#660)

`rnx-start` is being removed because it currently does not provide any
value over vanilla `react-native start`.

See microsoft/rnx-kit#139

* Fix more typos in the nuspec (#661)

* Fix typos, uncomment pipeline

* comment out pipeline again

* Revamp Android ThemePicker (#664)

* updated themepicker for android

* Change files

* add correct picker...

* ignore rn-picker depcheck...

* separated android themepicker...

* added dropdown styles...

* add types for dropdown..

* Add a Contributing markdown file (#555)

* Initial Commit

* Restructuring

* Rewrite Slots summary

* Update Guide based on feedback

* More fixes

* Update from PR feedback

* Add RNSVG dependency to Icon and update RNSVG version throughout (#668)

* Add button icon tests specific to win32

* Change files

* Change files

* Add dependency to rnsvg

* Add RNSVG dependency to ios and mac

* Remove rnsvg dep from ios and macos due to failed depcheck

* Add rnsvg to ios and macos againt but also add to ignores for depcheck

* Add explicit react-native-svg dependency to FURN Icon (#666)

* Add direct dependency on RNSVG in FURN Icon

* Change files

* Update yarn.lock with react-native-svg 12.1.1

* componentize shimmer

* move shimmer to experimental

* create slots for shapes

* revamp shimmer slots

* implement shimmerElement to group sub-elements

* Change files

* add shimmer to android and accessibility support

* use useRef hook and union types

* remove rect & circle slots

* documentation

Co-authored-by: Tushar Anil Masane <[email protected]>
Co-authored-by: Tushar Masane <[email protected]>
Co-authored-by: UI-Fabric-RN-Bot <[email protected]>
Co-authored-by: Krystal Siler <[email protected]>
Co-authored-by: Saad Najmi <[email protected]>
Co-authored-by: Adam Gleitman <[email protected]>
Co-authored-by: Tommy Nguyen <[email protected]>
Co-authored-by: warren-ms <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants