Commit 328ed22
committed
Fix null-pointer vulnerability and restore Android compatibility
The loop checking the list of input extensions passed as a constructor
parameter was blindly calling getClass() on any element in the list.
This is not null safe and broke compatibility with some Android
versions.
Change the code to a null-safe instanceof check, which also restores
Android compatibility.
Fixes Issue #1353.1 parent 8c5766a commit 328ed22
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
0 commit comments