From fffcb9c88a9aec69125b138cb540d9dc8d7846c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Fri, 15 Apr 2016 04:50:32 -0700 Subject: [PATCH] Fix ImageEditingManager when no external cache Summary:`externalCacheDir == null && externalCacheDir == null` is obviously a typo in existing code. Closes https://github.com/facebook/react-native/pull/6429 Differential Revision: D3184362 fb-gh-sync-id: 1cd966ed96414348c4319d44679d2c912df6cc93 fbshipit-source-id: 1cd966ed96414348c4319d44679d2c912df6cc93 --- .../com/facebook/react/modules/camera/ImageEditingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java index be9ef2f89..952d92322 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java @@ -485,7 +485,7 @@ public class ImageEditingManager extends ReactContextBaseJavaModule { File externalCacheDir = context.getExternalCacheDir(); File internalCacheDir = context.getCacheDir(); File cacheDir; - if (externalCacheDir == null && externalCacheDir == null) { + if (externalCacheDir == null && internalCacheDir == null) { throw new IOException("No cache directory available"); } if (externalCacheDir == null) {