We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b7d78 commit ace962fCopy full SHA for ace962f
sentry-android-core/src/main/java/io/sentry/android/core/internal/tombstone/TombstoneParser.java
@@ -52,8 +52,9 @@ public SentryEvent parse() throws IOException {
52
event.setMessage(constructMessage(tombstone));
53
event.setDebugMeta(createDebugMeta(tombstone));
54
event.setExceptions(createException(tombstone));
55
- assert event.getExceptions() != null;
56
- assert event.getExceptions().size() == 1;
+ if (event.getExceptions() == null || event.getExceptions().isEmpty()) {
+ throw new RuntimeException("Failed to decode exception information from tombstone");
57
+ }
58
event.setThreads(createThreads(tombstone, event.getExceptions().get(0)));
59
60
return event;
0 commit comments