Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerExeption #22

Closed
BobbyJay opened this issue Dec 10, 2014 · 1 comment
Closed

NullPointerExeption #22

BobbyJay opened this issue Dec 10, 2014 · 1 comment

Comments

@BobbyJay
Copy link

JOB/src/DecoderWorker.js on Line 453:
newTable[0].length throws an error, when newTable is an empty array, therefore no newTable[0] exists. Fixed this with a simple condition:

if (newTable.length > 0) {
Image.table = newTable;
Image.width = newTable.length;
Image.height = newTable[0].length;
CreateImageData();
allTables.push({ table: newTable, data: new Uint8ClampedArray(Image.data), width: Image.width, height: Image.height });
}

This happened with image #102 of Muenster BarcodeDB (EAN: 4-000417-106001, Image: 4000417106001-01_N95-2592x1944_scaledTo800x600bilinear.jpg)

@EddieLa
Copy link
Owner

EddieLa commented Dec 10, 2014

Yeah, I hadn't uploaded that fix yet but was aware of it. Thanks for the heads up anyway.

@EddieLa EddieLa closed this as completed Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants