kotlin test check if something is null code example Example: null check in kotlin if(a != null) { //do something }