OSDN Git Service

Handle the case where the orientation column is not here...
authornicolasroard <nicolasroard@google.com>
Wed, 5 Dec 2012 00:22:40 +0000 (16:22 -0800)
committernicolasroard <nicolasroard@google.com>
Wed, 5 Dec 2012 00:26:59 +0000 (16:26 -0800)
bug:7537610
Change-Id: I4f64891a789358c20206aea3033fd17514199d62

src/com/android/gallery3d/filtershow/cache/ImageLoader.java

index 21548b1..afef58a 100644 (file)
@@ -151,6 +151,8 @@ public class ImageLoader {
             }
         } catch (SQLiteException e){
             return ExifInterface.ORIENTATION_UNDEFINED;
+        } catch (IllegalArgumentException e) {
+            return ExifInterface.ORIENTATION_UNDEFINED;
         } finally {
             Utils.closeSilently(cursor);
         }