Skip to content

Commit 6a997b7

Browse files
committed
fix endless recursion in handling of gs1 codes
1 parent dac5f06 commit 6a997b7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.33.10]
5+
6+
### Fixed
7+
- Endless recursion when handling unknown gs1 codes
8+
49
## [0.33.9]
510

611
### Fixed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ allprojects {
2929
}
3030

3131
project.ext {
32-
sdkVersion='0.33.9'
32+
sdkVersion='0.33.10'
3333
versionCode=1
3434

3535
compileSdkVersion=30

ui/src/main/java/io/snabble/sdk/ui/scanner/ProductResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void onError() {
214214
}
215215
}
216216

217-
if (gs1GtinScannedCodes.size() > 0) {
217+
if (gs1GtinScannedCodes.size() > 0 && gs1Code == null) {
218218
lookupAndShowProduct(gs1GtinScannedCodes, newGs1Code);
219219
} else {
220220
project.getEvents().productNotFound(scannedCodes);

0 commit comments

Comments
 (0)