We study a portfolio optimization problem in a financial market which is under the threat of crashes. At random times, the investor receives warnings that a bubble has formed in the market which may lead to a crash in the risky asset. We propose a regime switching model for the warnings and we...