From: Jay Freeman (saurik) Date: Wed, 13 Feb 2013 06:26:43 +0000 (+0000) Subject: Do not crash when there is no Veency. X-Git-Tag: v0.9.3381^0 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/499100afd898a47511ee44312393e1c42a26f6a7 Do not crash when there is no Veency. --- diff --git a/Tweak.mm b/Tweak.mm index 28ff1b2..dcc1322 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -662,6 +662,9 @@ static void VNCSetup() { } static void VNCEnabled() { + if (screen_ == NULL) + return; + [lock_ lock]; bool enabled(true);