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

App crash with nullable issue #198

Open
lidorDF opened this issue Jun 10, 2019 · 3 comments
Open

App crash with nullable issue #198

lidorDF opened this issue Jun 10, 2019 · 3 comments

Comments

@lidorDF
Copy link

lidorDF commented Jun 10, 2019

What is the issue?

Working with Kotlin cause the app to crash while getting onError. Please add @nullable annotation to your functions, so Kotlin will know to support it
...

Is it a crash report? Submit stack traces or anything that you think would help

...

Any improvements you suggest

...


CC @pusher/mobile

@AnD010
Copy link

AnD010 commented Jun 1, 2020

@lidorDF do you have any solution for this problem??? I have a problem in onError... and I don´t know how to control it

Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter code
com.xxx.repository.pusher.PusherRepositoryImp$connect$1.onError (Origen desconocido:7)
com.pusher.client.connection.websocket.WebSocketConnection$5.run (WebSocketConnection.java:238)
com.pusher.client.util.Factory$1.run (Factory.java:119)

@lidorDF
Copy link
Author

lidorDF commented Jun 1, 2020

In your Kotlin code add nullable:
override fun onError(message: String?, code: String?, e: java.lang.Exception?){}

@AnD010
Copy link

AnD010 commented Jun 1, 2020

thanks so much! @lidorDF

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

No branches or pull requests

3 participants