The Code A is from the project play-billing-samples, you can see [here](https://github.com/android/play-billing-samples/blob/master/TrivialDriveKotlin/app/src/main/java/com/kotlin/trivialdrive/billingrepo/localdb/EntitlementsDao.kt).

I think that `"SELECT * FROM gold_status LIMIT 1"` maybe return no record, I don't know whether `fun getGoldStatus(): LiveData<GoldStatus>` is correct statement, I think it should be Code B, right?

**Code A**

```
@Dao
interface EntitlementsDao {

    @Query("SELECT * FROM gold_status LIMIT 1")
    fun getGoldStatus(): LiveData<GoldStatus>
    ...
}

```

**Code B**

```
@Dao
interface EntitlementsDao {

    @Query("SELECT * FROM gold_status LIMIT 1")
    fun getGoldStatus(): LiveData<GoldStatus>?
    ...
}

```