From 8e76bbe2515c5c743d3db30a940ccb8040314bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20JEAN?= Date: Sat, 25 Sep 2021 09:54:34 +0200 Subject: [PATCH] fix(android): StringIndexOutOfBoundsException with invalid drawables (#9563) * fix(android/application): org.nativescript.widgets.Utils::getDrawable * chore: fix spacing * fix(android/application): do not load empty path Co-authored-by: Igor Randjelovic * test: Add tests for empty image sources * chore: add a few more test cases These make the app crash without the fix in place Co-authored-by: Igor Randjelovic Co-authored-by: Nathan Walker --- apps/ui/src/css/background-image-page.xml | 32 ++++++++++++++++++- apps/ui/src/image-view/missing-image-page.xml | 2 ++ .../java/org/nativescript/widgets/Utils.java | 10 ++++-- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/apps/ui/src/css/background-image-page.xml b/apps/ui/src/css/background-image-page.xml index 2b1beaa79..eef80d30e 100644 --- a/apps/ui/src/css/background-image-page.xml +++ b/apps/ui/src/css/background-image-page.xml @@ -1,5 +1,5 @@ - +