mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 21:28:49 +00:00
DirectionsActivity: Handle StreamCorruptedException when deserializing saved trip.
This commit is contained in:
parent
1e255a34de
commit
b99433686d
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ import java.io.ByteArrayInputStream;
|
|||
import java.io.IOException;
|
||||
import java.io.InvalidClassException;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.StreamCorruptedException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collection;
|
||||
|
@ -920,7 +921,7 @@ public class DirectionsActivity extends OeffiMainActivity implements ActivityCom
|
|||
is.close();
|
||||
|
||||
return object;
|
||||
} catch (final InvalidClassException | ClassNotFoundException x) {
|
||||
} catch (final InvalidClassException | ClassNotFoundException | StreamCorruptedException x) {
|
||||
x.printStackTrace();
|
||||
return null;
|
||||
} catch (final IOException x) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue