Skip to content

Update HealthConnectManager.kt, specifically the "!=null" - #1024

Open
brenda-shaw wants to merge 1 commit into
android:mainfrom
brenda-shaw:patch-1
Open

Update HealthConnectManager.kt, specifically the "!=null" #1024
brenda-shaw wants to merge 1 commit into
android:mainfrom
brenda-shaw:patch-1

Conversation

@brenda-shaw

Copy link
Copy Markdown

Requesting to update "!=null". The standalone APK version of Health Connect on Android 13/12, or across specific IPC serialization boundaries—ReadRecordsResponse.pageToken can return an empty string ("") instead of null when pagination is complete.

Because "" != null evaluates to true, the loop condition fails to terminate. This causes severe downstream effects for integrating apps, including infinite loops, rate limit exhaustion, and potential application crashes.

Requesting to update "!=null". The standalone APK version of Health Connect on Android 13/12, or across specific IPC serialization boundaries—ReadRecordsResponse.pageToken can return an empty string ("") instead of null when pagination is complete.

Because "" != null evaluates to true, the loop condition fails to terminate. This causes severe downstream effects for integrating apps, including infinite loops, rate limit exhaustion, and potential application crashes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant