summaryrefslogtreecommitdiffstats
path: root/packages/PrintSpooler
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-11-05 14:22:45 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-05 14:22:45 -0800
commit8045a50ed1902ff4007be7cd35b43188a61cafb0 (patch)
tree9412f8ac0f45306420cf5abeee8de4f38f4d470c /packages/PrintSpooler
parentb066a136d72e753836be17a73f25826605b8a92f (diff)
parent05d15b36bf133ac06c93e181c922d8119561ad5f (diff)
downloadframeworks_base-8045a50ed1902ff4007be7cd35b43188a61cafb0.zip
frameworks_base-8045a50ed1902ff4007be7cd35b43188a61cafb0.tar.gz
frameworks_base-8045a50ed1902ff4007be7cd35b43188a61cafb0.tar.bz2
am 05d15b36: am 3976afb5: am c445b3f2: Merge "Add missing null pointer check in PrintSpoolerService." into klp-dev
* commit '05d15b36bf133ac06c93e181c922d8119561ad5f': Add missing null pointer check in PrintSpoolerService.
Diffstat (limited to 'packages/PrintSpooler')
-rw-r--r--packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java b/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java
index 609ae64..778fb4d 100644
--- a/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java
+++ b/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java
@@ -544,7 +544,7 @@ public final class PrintSpoolerService extends Service {
final int printJobCount = mPrintJobs.size();
for (int i = 0; i < printJobCount; i++) {
PrintJobInfo printJob = mPrintJobs.get(i);
- if (isActiveState(printJob.getState())
+ if (isActiveState(printJob.getState()) && printJob.getPrinterId() != null
&& printJob.getPrinterId().getServiceName().equals(service)) {
return true;
}