]> git.saurik.com Git - veency.git/commitdiff
Do not crash when there is no Veency. v0.9.3381
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 13 Feb 2013 06:26:43 +0000 (06:26 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 13 Feb 2013 06:26:43 +0000 (06:26 +0000)
Tweak.mm

index 28ff1b2c50ff6b63421778a45810043b6c32f6a3..dcc13229e2757412cc120ac1a4d8065df8e7bf8c 100644 (file)
--- 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);