Merge "IndexOutOfBoundsException in the PrintSpoolerService dump." into klp-dev
This commit is contained in:
@@ -236,7 +236,7 @@ public final class PrintSpoolerService extends Service {
|
|||||||
@Override
|
@Override
|
||||||
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
String prefix = args[0];
|
String prefix = (args.length > 0) ? args[0] : "";
|
||||||
String tab = " ";
|
String tab = " ";
|
||||||
|
|
||||||
pw.append(prefix).append("print jobs:").println();
|
pw.append(prefix).append("print jobs:").println();
|
||||||
|
|||||||
Reference in New Issue
Block a user