Browse Source

uiimage blurring: fix error from the future

Felix Paul Kühne 10 years ago
parent
commit
588d41945c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Sources/UIImage+Blur.m

+ 3 - 0
Sources/UIImage+Blur.m

@@ -26,6 +26,9 @@
 @implementation UIImage (Blur)
 
 + (UIImage *)applyBlurOnImage:(UIImage *)imageToBlur withRadius:(CGFloat)blurRadius {
+    if (!imageToBlur)
+        return NULL;
+
     if ((blurRadius < 0.0f) || (blurRadius > 1.0f)) {
         blurRadius = 0.5f;
     }