coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 193 forks source link

Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference #168

Open virengujariya opened 8 years ago

virengujariya commented 8 years ago

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at com.kbeanie.imagechooser.api.ChosenMedia.getWidth(ChosenMedia.java:38) at com.kbeanie.imagechooser.api.ChosenImage.getMediaWidth(ChosenImage.java:58)

Mostly on samsung devices running OS 6

arpit999bicubic commented 8 years ago

Make sure you add runtime permission and after see this http://stackoverflow.com/questions/33343191/nullpointerexception-attempt-to-invoke-virtual-method-int-android-graphics-bit

hoyun293 commented 7 years ago

mine is also S6.. and i tried to use ExifInterface to rotate my Images but this one also goes to fail -3-