Fixed NPE

This commit is contained in:
str4d
2014-05-16 13:01:58 +00:00
parent f500036276
commit 39a5453f3e

View File

@@ -111,6 +111,8 @@ public class BoteHelper extends GeneralHelper {
}
public static Bitmap decodePicture(String picB64) {
if (picB64 == null)
return null;
byte[] decodedPic = Base64.decode(picB64, Base64.DEFAULT);
return BitmapFactory.decodeByteArray(decodedPic, 0, decodedPic.length);
}