Skip to content

Commit 9737b16

Browse files
committed
fix: avoid NPE when closing streamless tombstone parser
1 parent 5f33489 commit 9737b16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/internal/tombstone/TombstoneParser.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ private DebugMeta createDebugMeta(@NonNull final Tombstone tombstone) {
349349

350350
@Override
351351
public void close() throws IOException {
352-
tombstoneStream.close();
352+
if (tombstoneStream != null) {
353+
tombstoneStream.close();
354+
}
353355
}
354356
}

0 commit comments

Comments
 (0)