-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
fix null pointer error when saving flutter widget #182
Conversation
If user does not define an iOS groupId, the plugin fails to save any flutter widget into storage resulting in `(Failed to save screenshot to app group container: Null check operator used on a null value)`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super thank you! I'm currently fixing the pipeline. This should be released today!
Might need to rebase/fix the conflicts by the PR as the new flutter changes was also merged by you in (18cb7c7) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #182 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 68 67 -1
=========================================
- Hits 68 67 -1 ☔ View full report in Codecov by Sentry. |
fix for renderFlutterWidget
Relevant issue comments that provide what the exception was:
#91 (comment)
#91 (comment)
The issue happens if the user tries to save a flutter widget data into storage and hasn't defined any groupID for iOS. The null pointer exception occurred because the code checks for a null value. Hence, throwing the exception.
So we added a platform check for both iOS and Android and assigned value based on the active platform.