mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-04-14 12:27:38 -04:00
Fix crash on invalid import URI
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user