Closed fkrauthan closed 11 years ago
Found the issue. If you don't add any files to a pass then files is null and the foreach throws a Exception.
Good to know! I'll add a null-check and instead of rethrowing the IOException from the call to close() I'll just log it instead?
The IOException is thrown because of the nullpointer. So I think it is enough if you add the null pointer check.
If I call this
PassSerializer.writePkPassArchive(pass, signer, byteOutputStream);
I the following exception: