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

Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity? #60

Open
vsaisujeeth opened this issue May 2, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@vsaisujeeth
Copy link

Describe the bug

Tried the example given in the page https://pub.dev/packages/upi_pay/example. Debugger throws this error.

e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\upi_pay-1.0.1\android\src\main\kotlin\com\drenther\upi_pay\UpiPayPlugin.kt: (78, 42): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?
e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\upi_pay-1.0.1\android\src\main\kotlin\com\drenther\upi_pay\UpiPayPlugin.kt: (83, 15): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?
e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\upi_pay-1.0.1\android\src\main\kotlin\com\drenther\upi_pay\UpiPayPlugin.kt: (97, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity? 
@vsaisujeeth vsaisujeeth added the bug Something isn't working label May 2, 2022
@vsaisujeeth vsaisujeeth changed the title C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\upi_pay-1.0.1\android\src\main\kotlin\com\drenther\upi_pay\UpiPayPlugin.kt: (97, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity? Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity? May 2, 2022
@asifakhtar98
Copy link

Getting the same issue till now

@drenther
Copy link
Owner

Happy to take a PR for this.

@drenther
Copy link
Owner

If this issue concerns you still. Please have a look at #62 by @GJJ2019 and leave your comments on that PR. Will have merge that PR and close this issue ASAP.

@Electro-17
Copy link

May I know when this issue will be fixed and the plugin will be made available for use?

@cndNabeel
Copy link

cndNabeel commented Jul 6, 2023

the issue still coming
upi_pay\UpiPayPlugin.kt: (97, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?
upi_pay\UpiPayPlugin.kt: (83, 15): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?
upi_pay\UpiPayPlugin.kt: (78, 42): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?

@sumitrvi
Copy link

Any solution for this issue?
Note: /Users/nhz/.pub-cache/hosted/pub.dev/launch_review-3.0.1/android/src/main/java/com/iyaffle/launchreview/LaunchReviewPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: /Users/nhz/.pub-cache/hosted/pub.dev/upi_pay-1.0.1/android/src/main/kotlin/com/drenther/upi_pay/UpiPayPlugin.kt: (78, 42): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?
e: /Users/nhz/.pub-cache/hosted/pub.dev/upi_pay-1.0.1/android/src/main/kotlin/com/drenther/upi_pay/UpiPayPlugin.kt: (83, 15): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?
e: /Users/nhz/.pub-cache/hosted/pub.dev/upi_pay-1.0.1/android/src/main/kotlin/com/drenther/upi_pay/UpiPayPlugin.kt: (97, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Activity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants