Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

myLife: smoother error handling (fixes #5335) #5340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huitk
Copy link
Member

@huitk huitk commented Feb 21, 2025

fixes #5335

@huitk huitk linked an issue Feb 21, 2025 that may be closed by this pull request
@@ -100,9 +100,9 @@ class AdapterHealthExamination(private val context: Context, private val list: L
if (realmExamination != null) {
if (realmExamination.date >= time) { dialog.setButton(DialogInterface.BUTTON_NEUTRAL, context.getString(R.string.edit)) { _: DialogInterface?, _: Int ->
context.startActivity(Intent(context, AddExaminationActivity::class.java)
.putExtra("id", list[position]._id)
.putExtra("id", list!![position]._id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding !! introduces this warning.
Unnecessary non-null assertion (!!) on a non-null receiver of type 'kotlin. collections. List<org. ole. planet. myplanet. model. RealmMyHealthPojo>'.
Screenshot 2025-02-24 at 14 28 47

Copy link
Member

@Avinash-Codes Avinash-Codes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree wtih @Okuro3499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error on AdapterHealthExamination
3 participants