throw exception and don't throw null ref exception