title: If null else not working
body: <p>I want to execute a msg if the <code>location</code> is null, and another msg if it is not null, so I'm trying use the <a href="https://kotlinlang.org/docs/reference/null-safety.html#elvis-operator" rel="nofollow noreferrer">elvis-operator</a> as <code>a?.let{} ?: run{}</code> statement, but the <code>run</code> part is not reachable, and it tells me it is not required nor non-nullable!</p>
  
  <p>The function I'm getting the error with, is:</p>
  
  <pre><code>getLocation(
             context,
                  { location -&gt;
                      location?.let {
                          msg = ("As of: ${Date(it.time)}, " +
                                  "I am at: http://maps.google.com/?q=@" +
                                  "${it.latitude}, ${it.longitude}, " +
                                  "my speed is: ${it.speed}")
                      } ?: run { . // Getting error here
                          msg = "Sorry, it looks GPS is off, no location found\""
                      }
  
                      sendSMS(
                              context,
                              address,
                              msg,
                              subId
                      )
                  }
          )
  </code></pre>
  
  <p>Th <code>getLocation</code> function is:</p>
  
  <pre><code>object UtilLocation {
      private lateinit var l : Location
  
      @SuppressLint("MissingPermission")
      fun getLocation(context: Context, callback: (Location) -&gt; Unit) {
          fusedLocationClient = LocationServices.getFusedLocationProviderClient(context!!)
  
          fusedLocationClient.lastLocation
                  .addOnSuccessListener { location : Location? -&gt;
                      this.l = location!!
                      callback.invoke(this.l)
                  }
      }
  }
  </code></pre>