Antoine Amarilli
unread,Mar 28, 2016, 4:10:02 AM3/28/16You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Package: pdftk
Version: 2.02-3
Severity: minor
Dear Maintainer,
pdftk fails messily with a non-helpful NullPointerException when run on a
directory by mistake.
To reproduce, run e.g. "pdftk ."
I obtain the following result:
Unhandled Java Exception in main():
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.15)
at java.lang.Throwable.getStackTrace(libgcj.so.15)
at java.lang.Throwable.stackTraceString(libgcj.so.15)
at java.lang.Throwable.printStackTrace(libgcj.so.15)
at java.lang.Throwable.printStackTrace(libgcj.so.15)
I would expect an error to be displayed. For instance, when running the command
"pdftk does_not_exist" where "does_not_exist" is a nonexistent file, the output
is:
Error: Unable to find file.
Error: Failed to open PDF file:
does_not_exist
Done. Input errors, so no output created.
The output when trying to open a directory should be similar.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'experimental'), (600, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pdftk depends on:
ii libc6 2.22-3
ii libgcc1 1:5.3.1-12
ii libgcj15 4.9.3-12
ii libstdc++6 5.3.1-12
pdftk recommends no packages.
Versions of packages pdftk suggests:
ii poppler-utils [xpdf-utils] 0.38.0-2
-- debconf-show failed