diff --git a/WarmlyShip/WarmlyShip/FormShipCollection.cs b/WarmlyShip/WarmlyShip/FormShipCollection.cs index f9315fb..302ecc0 100644 --- a/WarmlyShip/WarmlyShip/FormShipCollection.cs +++ b/WarmlyShip/WarmlyShip/FormShipCollection.cs @@ -138,7 +138,12 @@ namespace WarmlyShip private void ButtonRefresh_Click(object sender, EventArgs e) { + if (_company == null) + { + return; + } + pictureBox.Image = _company.Show(); } } }