xabber-android icon indicating copy to clipboard operation
xabber-android copied to clipboard

http_upload: NullPointerException

Open casperklein opened this issue 5 years ago • 2 comments

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 avatar Dec 08 '19 12:12 casperklein

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.

casperklein avatar Dec 08 '19 13:12 casperklein

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 [email protected] and we send special version for you, cause this fix will not be soon in Google Play.

popovvitaly avatar Dec 16 '19 07:12 popovvitaly