Handle exception when reading from the log database.
This commit is contained in:
parent
d755e1e29e
commit
a5c51ff801
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue