Android: return String regardless from QtLoader.getMetaData()
To avoid exceptions if the metadata is a non-string like boolean or integer. Task-number: QTBUG-115016 Change-Id: I104e6b2954873e74bc100cb965ee8ea9b6d14568 Reviewed-by: Janne Juntunen <janne.juntunen@qt.io> Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 400e7d1a758394df350cbdcbc6cff3683976b789) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b9f5b892d4
commit
5855be0fb3
@ -300,7 +300,7 @@ abstract class QtLoader {
|
||||
if (metadata == null || !metadata.containsKey(key))
|
||||
return "";
|
||||
|
||||
return metadata.getString(key);
|
||||
return String.valueOf(metadata.get(key));
|
||||
}
|
||||
|
||||
@SuppressLint("DiscouragedApi")
|
||||
|
Loading…
x
Reference in New Issue
Block a user