-
Notifications
You must be signed in to change notification settings - Fork 724
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 safety in filepickerdelegate #1615
Fix null safety in filepickerdelegate #1615
Conversation
outputStream.write(bytes); | ||
outputStream.flush(); | ||
outputStream.close(); | ||
if (data != null) { |
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.
Can you use an early return instead?
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.
Sure, I fixed it :)
e0c9603
to
0bcc22d
Compare
0bcc22d
to
141cc3f
Compare
@@ -85,6 +85,8 @@ public boolean onActivityResult(final int requestCode, final int resultCode, fin | |||
// Save file | |||
if (requestCode == SAVE_FILE_CODE) { | |||
if (resultCode == Activity.RESULT_OK) { | |||
if (data == null) |
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.
Since the other if's also use curly braces, can you do that here as well?
Also, if you update the patch version and add an entry in the changelog, then this can be published.
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.
Sure, I added all of this
e945fa3
to
e090801
Compare
No description provided.