diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-08-16 18:00:09 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-08-21 19:54:00 +0100 |
commit | 62f682beef0ee11c2be647bf268c6d18a9156275 (patch) | |
tree | 183d9e57dd84384f0643edb92079b62a843faacb /platform/android/src/com | |
parent | bb0876c8422b31ab912af36ec010416ecea09712 (diff) | |
download | mupdf-62f682beef0ee11c2be647bf268c6d18a9156275.tar.xz |
Bug 694522: Cope with selection of text on a JPEG image.
If there is no text to select we return an array with a NULL in it
and this causes the code to crash. Simple workaround.
Diffstat (limited to 'platform/android/src/com')
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java index bc1fea71..e362d1e7 100644 --- a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java +++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java @@ -233,6 +233,8 @@ public class MuPDFCore ArrayList<TextWord[]> lns = new ArrayList<TextWord[]>(); for (TextChar[][][] bl: chars) { + if (bl == null) + continue; for (TextChar[][] ln: bl) { ArrayList<TextWord> wds = new ArrayList<TextWord>(); TextWord wd = new TextWord(); |