commit | 38b92423de904371dfc658f22024d2acab919a9a | [log] [tgz] |
---|---|---|
author | Beth Thibodeau <ethibodeau@google.com> | Mon Apr 27 14:17:08 2020 -0400 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Mon Apr 27 20:45:19 2020 +0000 |
tree | ec623a2a559f0fc1f6b9ce15be43752f5784c06f | |
parent | 82d50e0bfadc1a91c49158024e6935b1f3e1d1b9 [diff] |
Check URI is valid for loading images ImageDecoder requires URIs to have a scheme of type SCHEME_CONTENT, SCHEME_ANDROID_RESOURCE, or SCHEME_FILE In addition URI scheme being null was causing NPE since ImageDecoder does not check for that. Fixes: 155021174 Test: manual Change-Id: I724c8b7e1000c2fc5b3910550ec69904da079bce (cherry picked from commit dba74bcfa8897da3644df1f97e69ab5f13c23a1c)