Handle exception when reading from the log database.

This commit is contained in:
Greyson Parrelli 2021-09-24 11:57:03 -04:00
parent d755e1e29e
commit a5c51ff801

View file

@ -164,6 +164,9 @@ public class SubmitDebugLogRepository {
gzipOutput.write(reader.next().getBytes());
gzipOutput.write("\n".getBytes());
}
} catch (IllegalStateException e) {
Log.e(TAG, "Failed to read row!", e);
return Optional.absent();
}
StreamUtil.close(gzipOutput);