Skip to content

Commit cda8031

Browse files
committed
gate the close() on the underlying input stream
1 parent cf1111e commit cda8031

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)