mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +01:00
* DatabaseUtils.kt: change getString() to allow null returns Before this change, a call to getString() would assume that the specified column name actually exists. A bad String input would cause a null value to be returned to getString(), which would then throw a NPE because getString() can only return non null Strings. This change expands the getString() method to check if the column name exists. If it does exist, the String is retrieved normally. Else, a null value is returned. The method signature is changed to allow null return values. * *Dao.kt: change some usages of getString() Before this change, the getString() method in DatabaseUtils.kt was changed to allow returning a null value upon method failure. All usages of getString() were not changed. This change updates all usages of getString() which require non null return values. If null is returned, an empty string is used instead. --------- Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.txt | ||
| test-proguard-rules.txt | ||