From 0e208c663111f6c31e526f84e80118cb9810ea3b Mon Sep 17 00:00:00 2001 From: Paolo Rotolo Date: Fri, 3 Mar 2023 17:59:07 +0100 Subject: [PATCH] Partial fix for #1129 --- lib/src/main/java/org/altbeacon/beacon/service/ScanState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/org/altbeacon/beacon/service/ScanState.java b/lib/src/main/java/org/altbeacon/beacon/service/ScanState.java index b3d81ce7..5d91cb42 100644 --- a/lib/src/main/java/org/altbeacon/beacon/service/ScanState.java +++ b/lib/src/main/java/org/altbeacon/beacon/service/ScanState.java @@ -147,7 +147,7 @@ public static ScanState restore(Context context) { } catch (FileNotFoundException fnfe) { LogManager.w(TAG, "Serialized ScanState does not exist. This may be normal on first run."); } - catch (IOException | ClassNotFoundException | ClassCastException e) { + catch (IllegalStateException | IOException | ClassNotFoundException | ClassCastException e) { if (e instanceof InvalidClassException) { LogManager.d(TAG, "Serialized ScanState has wrong class. Just ignoring saved state..."); }