You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: arcgis_map_sdk_android/android/src/main/kotlin/dev/fluttercommunity/arcgis_map_sdk_android/util/GraphicsParser.kt
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,9 @@ class GraphicsParser(private val binding: FlutterPluginBinding) {
125
125
126
126
// return local asset in case its a local path
127
127
if (!payload.assetUri.isWebUrl()) {
128
+
if (!payload.assetUri.endsWith(".png", ignoreCase =true)) {
129
+
throwIllegalArgumentException("Local assetUri must have type .png. Got ${payload.assetUri}")
0 commit comments