Update Checkin.java

Added a null check