summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorriddle_hsu <riddle_hsu@htc.com>2015-07-30 21:52:58 +0800
committerriddle_hsu <riddle_hsu@htc.com>2015-07-30 21:52:58 +0800
commit98bfb3466c4bd433a35e5da55ba6cd5eb652d050 (patch)
treef6cf43179b7f969842d70d993352775a2d6982ea /tools/aidl/generate_java.cpp
parent84a04d52e7118f67e9a099fdbf55111f1c7a9010 (diff)
Fix NPE in JobStore when jobs.xml is empty.
It is possible that jobs.xml does not have valid content if the device meet unexpected power off or reboot during writing the file, then parser.getName() may get null string on next boot. Because log does not allow to print null message. It will result boot fail: Caused by: java.lang.NullPointerException: println needs a message at android.util.Log.println_native(Native Method) at android.util.Slog.d at com.android.server.job.JobStore $ReadJobMapFromDiskRunnable.readJobMapImpl Change-Id: Icd485096e2f00f4028428a9ad95cd0ef66b2dca0
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions