if (passengerList!=null&&passengerList.size()>0) {
} else {
}
人生最曼妙的风景,竟是内心的淡定与从容!
When list==null, the system reports a null pointer exception when list.size()>0 is executed.
When list==null, the system reports a null pointer exception when list.size()>0 is executed.