Brake pedal has no pressure

Is the rubber hose to booster collapsing under pressure?
I had this happen when I hit the brakes, the hose collapsed on itself.

Replaced the hose and all was fine.