question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
private fun engine(): RtcEngine? {
    return reactApplicationContext.getNativeModule(RCTAgoraRtcEngineModule::class.java).engine()
  }
private fun engine(): RtcEngine? {
    return reactApplicationContext.getNativeModule(RCTAgoraRtcEngineModule::class.java)?.engine()
  }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

7reactions
LichKing-2234commented, Mar 16, 2021

@cemarguvanli it will be released this week.

1reaction
radko93commented, Mar 15, 2021

Seems like it was fixed by @LichKing-2234, waiting for the release then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Only safe or non null assserted calls are allowed on a nullable ...
The problem is, that you defined the ArrayList as nullable . You have two options here: don't define the variable nullable (this depends...
Read more >
Only safe (?.) or non-null asserted (!!.) calls are allowed on a ...
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type RCTAgoraRtcEngineModule? #334.
Read more >
Safe calls(?.) vs Null checks(!!) in Kotlin - Suneet Agrawal
In Kotlin, the type system distinguishes between references that can hold null (nullable references) and those that can not (non-null references).
Read more >
"Only safe or null-asserted calls are allowed on nullable ...
"Only safe or null-asserted calls are allowed on nullable receiver" after converting Java code with Map#get as receciver that would throw an exception...
Read more >
Kotlin and null safety: Yet Again! | by Vinay Joglekar - Medium
or non-null asserted (!!.) calls are allowed on a nullable receiver of type User? user?.name = "Vinay". This is how you null- check...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found