summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-01-24 19:26:26 +0000
committerRobin Watts <robin.watts@artifex.com>2013-01-26 17:26:54 +0000
commit0cbf73e579846395c7b9f7ebd3f3f229d99104ac (patch)
treead21e1587baabc1316989fa2bcbcd4b7f7851378 /draw
parente6f5e24b5d145cb571f82b2e01178be4c3eff662 (diff)
downloadmupdf-0cbf73e579846395c7b9f7ebd3f3f229d99104ac.tar.xz
Android: Fix NullPointerException seen on Google Play
According to Google Plays automated crash detection, we get a NullPointerException when trying to parse a null string as a Uri. This turns out to be caused by us trying to open a PDF attachment from gmail. This is because MuPDF is invoked with a content:// URL that does not have a file associated with it. Instead we can open that URL as an InputStream. Here we amend MuPDF to spot that case, and to open the InputStream, suck the data into a byteArray, and then to use that to open the file from.
Diffstat (limited to 'draw')
0 files changed, 0 insertions, 0 deletions