From: jpbruyere Date: Tue, 1 Mar 2016 03:52:38 +0000 (+0100) Subject: check content==null when Unpop X-Git-Tag: v0.4~93^2~11 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=b541408c268584d85e46e3a0d5092acb44c9c923;p=jp%2Fcrow.git check content==null when Unpop --- diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs index fdbed62c..5938fd8a 100644 --- a/src/GraphicObjects/Popper.cs +++ b/src/GraphicObjects/Popper.cs @@ -189,7 +189,8 @@ namespace Crow { if (Interface.CurrentInterface == null) return; - Content.Visible = false; + if (Content != null) + Content.Visible = false; Unpop.Raise (this, e); } }