I have an app where companies can register and have the option to upload an image of their company to show in the profile, the problem is that if they do not upload the image to the Storage, when I perform an action in the Activity I jump the following error ...
W/Glide: Load failed for null with size [-1x-1]
class com.bumptech.glide.load.engine.GlideException: Received null model
This error occurs because you have not yet uploaded any images to your profile
And this is the code that generates the error ...
if (item.child("Logo").exists()) {
Logo = item.child("Logo").getValue().toString();
}
Glide.with(getApplicationContext())
.load(Logo)
.apply(new RequestOptions()
.placeholder(R.drawable.negociophoto)
.centerCrop()
.dontAnimate()
.dontTransform())
.into(logoempresa);
I hope you can help me, thank you very much.