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