title: Kotlin - IllegalArgumentException
body: <p>Not sure what is causing this, but i am trying request data from the api and i am getting an IllegalArgumentException</p>
  
  <pre><code>package com.example.tmdb
  
  import com.google.gson.Gson
  import org.jetbrains.anko.doAsync
  import org.jetbrains.anko.uiThread
  
  class MainPresenter(private val view:MainView, private val apiRepository: ApiRepository, private val gson: Gson){
      fun getMovieList(){
          doAsync {
              val data = gson.fromJson(apiRepository.doRequest(TMDBApi.getMovie()),
                  MovieResponse::class.java)
  
              uiThread {
                  view.showMovieList(data.result)
              }
          }
      }
  }
  </code></pre>
  
  <p>Line in which i am getting exception is </p>
  
  <pre><code>view.showMovieList(data.result)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>class MainPresenter(private val view:MainView, private val apiRepository: ApiRepository, private val gson: Gson){
  </code></pre>
  
  <p>Error message showing in Logcat is:-</p>
  
  <pre><code>java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter data
          at com.example.tmdb.MainActivity.showMovieList(MainActivity.kt)
          at com.example.tmdb.MainPresenter$getMovieList$1$1.invoke(MainPresenter.kt:14)
          at com.example.tmdb.MainPresenter$getMovieList$1$1.invoke(MainPresenter.kt:7)
          at org.jetbrains.anko.AsyncKt$uiThread$1.run(Async.kt:71)
          at android.os.Handler.handleCallback(Handler.java:751)
          at android.os.Handler.dispatchMessage(Handler.java:95)
          at android.os.Looper.loop(Looper.java:154)
          at android.app.ActivityThread.main(ActivityThread.java:6776)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)
  </code></pre>