log problems creating the image ( happens https://github.com/zxing/zxing/issues/165 )
This commit is contained in:
parent
9897eda16d
commit
8bc6fba5b3
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,8 @@ import com.google.zxing.Writer;
|
|||
import com.google.zxing.WriterException;
|
||||
import com.google.zxing.common.BitMatrix;
|
||||
|
||||
import org.ligi.tracedroid.logging.Log;
|
||||
|
||||
public class BarcodeHelper {
|
||||
|
||||
public static Bitmap generateBarCodeBitmap(String dataNotNull, BarcodeFormat typeNotNull, int size) {
|
||||
|
@ -39,6 +41,7 @@ public class BarcodeHelper {
|
|||
|
||||
return barcode_image;
|
||||
} catch (com.google.zxing.WriterException e) {
|
||||
Log.w("could not write image " + e);
|
||||
// TODO check if we should better return some rescue Image here
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue