diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2012-11-28 16:32:23 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-11-28 16:34:30 +0000 |
commit | cefbcba89d86db64613fa7ad105416f268604332 (patch) | |
tree | bdb565cba3facf33c97e1395c82b41930d346ae0 | |
parent | 6c4834861eb9e685f74f45f0967744caabbd4c48 (diff) | |
download | mupdf-cefbcba89d86db64613fa7ad105416f268604332.tar.xz |
Android: fix null exception when viewing calc.pdf
-rw-r--r-- | android/src/com/artifex/mupdf/MuPDFCore.java | 2 | ||||
-rw-r--r-- | android/src/com/artifex/mupdf/MuPDFPageView.java | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/android/src/com/artifex/mupdf/MuPDFCore.java b/android/src/com/artifex/mupdf/MuPDFCore.java index fc950e9b..c86867c3 100644 --- a/android/src/com/artifex/mupdf/MuPDFCore.java +++ b/android/src/com/artifex/mupdf/MuPDFCore.java @@ -156,7 +156,7 @@ public class MuPDFCore case COMBOBOX: return new PassClickResultChoice(changed, getFocusedWidgetChoiceOptions(), getFocusedWidgetChoiceSelected()); default: - return null; + return new PassClickResult(changed); } } diff --git a/android/src/com/artifex/mupdf/MuPDFPageView.java b/android/src/com/artifex/mupdf/MuPDFPageView.java index bc7b6223..8c8ec7e0 100644 --- a/android/src/com/artifex/mupdf/MuPDFPageView.java +++ b/android/src/com/artifex/mupdf/MuPDFPageView.java @@ -15,14 +15,15 @@ abstract class PassClickResultVisitor { public abstract void visitChoice(PassClickResultChoice result); } -abstract class PassClickResult { +class PassClickResult { public final boolean changed; public PassClickResult(boolean _changed) { changed = _changed; } - public abstract void acceptVisitor(PassClickResultVisitor vistor); + public void acceptVisitor(PassClickResultVisitor visitor) { + } } class PassClickResultText extends PassClickResult { |