Skip to content

Commit 194ee54

Browse files
committed
Null-check handlerThread
1 parent 36482b9 commit 194ee54

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/SystemEventsBreadcrumbsIntegration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ public void close() throws IOException {
208208
try (final @NotNull ISentryLifecycleToken ignored = receiverLock.acquire()) {
209209
isClosed = true;
210210
filter = null;
211-
handlerThread.quit();
211+
if (handlerThread != null) {
212+
handlerThread.quit();
213+
}
212214
handlerThread = null;
213215
}
214216

0 commit comments

Comments
 (0)