adding null check to brokerinfo