From f3c5cc6b5211af09616aaf239d318ecc8f76d865 Mon Sep 17 00:00:00 2001 From: srowen Date: Thu, 14 Feb 2008 18:58:41 +0000 Subject: [PATCH] Catch weird Error 136 from Nokia N70 and continue when opening capture://image git-svn-id: https://zxing.googlecode.com/svn/trunk@183 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- javame/src/com/google/zxing/client/j2me/ZXingMIDlet.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/javame/src/com/google/zxing/client/j2me/ZXingMIDlet.java b/javame/src/com/google/zxing/client/j2me/ZXingMIDlet.java index a93482593..50b5c6d9d 100644 --- a/javame/src/com/google/zxing/client/j2me/ZXingMIDlet.java +++ b/javame/src/com/google/zxing/client/j2me/ZXingMIDlet.java @@ -89,7 +89,10 @@ public final class ZXingMIDlet extends MIDlet { player = Manager.createPlayer("capture://image"); } catch (MediaException me) { // if this fails, just continue with capture://video - } + } catch (Error e) { + // Ugly, but, it seems the Nokia N70 throws "java.lang.Error: 136" here + // We should still try to continue + } } if (player == null) { player = Manager.createPlayer("capture://video");