Same thing here. Just add be!=null to the if in the next line, and you can ditch the goto and label.