redsolution / xabber-android

Open-source XMPP client for Android
http://xabber.com
Other
1.82k stars 815 forks source link

http_upload: NullPointerException #915

Closed casperklein closed 1 day ago

casperklein commented 4 years ago

Android: 10 Device: Samsung S10 Xabber Version: 2.6.6.644 (But also tested with 2.6.6.645 after grabbing the log below; when recognized there was an update on the play store)

"http_upload" does not work anymore for me. When trying to send an image for example, I get "Could not upload any file". If I click the error description in the chat, I see:

myimage.jpg: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getHeight()' on a null object reference

Debug log: Xabber 2.6.6.644 2019-12-08 12-51-32 log file.txt

casperklein commented 4 years ago

I tested further with other files, file types and locations. I also got this error sometimes:

myimage2.png: java.io.FileNotFoundException: /storage/emulated/0/some-app-folder/myimage2.png: open failed: EACCES (Permission denied)

I checked the Android permissions for Xabber and all are granted.

PS: I've added Device/Android Info to my initial post.

popovvitalii commented 4 years ago

We have a fix for this problem which appeared at 10 Android, but we doesn't tested it enough, especially at Samsung devices. You can write us to info@xabber.com and we send special version for you, cause this fix will not be soon in Google Play.