codelab-friendlychat-android icon indicating copy to clipboard operation
codelab-friendlychat-android copied to clipboard

Crash when the message doesn't have an imageUrl

Open madmax330 opened this issue 7 years ago • 2 comments

I completed both tutorials for the FriendlyChat (Android/iOS swift), when you add pictures in your swift application, if you are using the same database the android app will crash trying to load the messages because in the swift app "imageUrl" is stored as "imageURL" and "photoUrl" is "photoURL" so the app crashes at

if (imageUrl.startsWith("gs://")) { (line 229 I believe)

because imageUrl is actually stored as imageURL.

madmax330 avatar Feb 16 '18 09:02 madmax330

@madmax330 thanks for doing both codelabs and for finding this issue! As I said on the iOS repo, we'll get this fixed.

samtstern avatar Feb 16 '18 16:02 samtstern

No problem! 👍🏽

madmax330 avatar Feb 16 '18 19:02 madmax330