From 499100afd898a47511ee44312393e1c42a26f6a7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 13 Feb 2013 06:26:43 +0000 Subject: [PATCH] Do not crash when there is no Veency. --- Tweak.mm | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.2