Issue 1694 in zxing: Running CommandLineEncoder with AZTEC gives a NPE

20 views
Skip to first unread message

zx...@googlecode.com

unread,
May 28, 2013, 7:43:53 PM5/28/13
to zx...@googlegroups.com
Status: New
Owner: ----

New issue 1694 by fyel...@gmail.com: Running CommandLineEncoder with AZTEC
gives a NPE
http://code.google.com/p/zxing/issues/detail?id=1694

java -cp ../javase/build/:../core/build/
com.google.zxing.client.j2se.CommandLineEncoder \
--barcode_format=AZTEC hello
Exception in thread "main" java.lang.NullPointerException
at com.google.zxing.aztec.AztecWriter.encode(AztecWriter.java:40)
at com.google.zxing.MultiFormatWriter.encode(MultiFormatWriter.java:94)
at com.google.zxing.MultiFormatWriter.encode(MultiFormatWriter.java:47)
at
com.google.zxing.client.j2se.CommandLineEncoder.main(CommandLineEncoder.java:85)

AztecWriter is not expecting to receive a null hints argument.

Attached simple patch fixes.


Attachments:
AztecWriter.diff 899 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

zx...@googlecode.com

unread,
May 29, 2013, 7:49:57 AM5/29/13
to zx...@googlegroups.com
Updates:
Status: Fixed
Owner: fyel...@gmail.com
Labels: Type-Defect Priority-Medium

Comment #1 on issue 1694 by srowen: Running CommandLineEncoder with AZTEC
Indeed, committed now.
Reply all
Reply to author
Forward
0 new messages