Commit 6924759
committed
fix(app, android): handle possible null external storage directory
Environment.getExternalStoragePublicDirectory can return null when
external storage is unavailable; guard the pictures and movies
directory constants instead of dereferencing getAbsolutePath directly.1 parent eef34e7 commit 6924759
1 file changed
Lines changed: 6 additions & 6 deletions
File tree
- packages/app/android/src/reactnative/java/io/invertase/firebase/utils
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | | - | |
165 | | - | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
168 | 170 | | |
169 | | - | |
170 | | - | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
0 commit comments