Put some error checks into portfolio views