Fix crash on invalid import URI

This commit is contained in:
Sylvia van Os
2023-01-25 18:13:58 +01:00
parent ad364ad0ac
commit 2cd6da6ffc

View File

@@ -117,7 +117,7 @@ public class ImportURIHelper {
}
return new LoyaltyCard(-1, store, note, expiry, balance, balanceType, cardId, barcodeId, barcodeType, headerColor, 0, Utils.getUnixTime(), 100,0);
} catch (NullPointerException | NumberFormatException | UnsupportedEncodingException ex) {
} catch (NullPointerException | NumberFormatException | UnsupportedEncodingException | ArrayIndexOutOfBoundsException ex) {
throw new InvalidObjectException("Not a valid import URI");
}
}