And if it was null, you would never make it to that null check, because a NullPointerException would be thrown when you called close()