summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-11-13 17:31:11 -0800
committerSvetoslav <svetoslavganov@google.com>2013-11-13 17:31:15 -0800
commitafd19675030801fb64d32ff101d1da651edf87bc (patch)
tree8c58690d63785bedc81b7e53147e0a85e2364cba /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta951fa56f1855cd0337bddacc01e35868c6d66d6 (diff)
Avoid NPE and add a warning log if a printing app misbehaves.
An app can print only from an activity. If the activity is finished before printing completes we destroy the PrintDocumentAdapter. The app may however invoke some of the print callbacks after destruction resulting in a NPE. This change checks if the adapter is destroyed and if so does not crash while printing a meaningful log error with the mistake of the app developer. bug:11675274 Change-Id: I66539cfbd7583f52cb863a84ef8e40856f92ceed
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions