Kotlin Retrofit return null to recylerView in .enqueue
So I'm trying to get data from an API with retrofit into a recycler view adapter. Everything works perfectly such as showing a list of data retrieve into list items. However, when press on the list item of the recycler view and intent to another activity and intent back to the original activity, the app crashed. With the error below :
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.marcusneo.stockportfolio, PID: 7586
java.lang.NullPointerException
at...