DEV Community

Santosh Pradhan
Santosh Pradhan

Posted on

i can't find error

i have a data class inside a variable val data:List ?=null;

but in the api response some time data =[] and data =null how to handle in the kotlin the android

Top comments (0)