BenoitDuffez / AndroidCupsPrint

Port of cups4j to Android. Allows wireless printing from any Android device to any CUPS-enabled print server or network printer.
https://benoitduffez.github.io/AndroidCupsPrint
GNU Lesser General Public License v3.0
230 stars 66 forks source link

NullPointerException in updateJobStatus #127

Closed chrisapps4u closed 5 years ago

chrisapps4u commented 5 years ago

However my CupsServer don't switch the job-status into completed, when it is finished. After some time it is gone and updateJobStatus throws a NullPointerException, because it don't find the job. So then we should also complete the printJob. And of course at all Exceptions we should stop the polling. Otherwise we run again and again into the Exception. At the other Exceptions, i insert the error message of the Android PrintingService.

BenoitDuffez commented 5 years ago

Seems nice, I'll blindly merge it :)