[OpenJDK 2D-Dev] [12] JDK-8212202: NPE in the print tests after JDK-8153732

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Dec 4 06:11:35 UTC 2018


Hi, Shashi.

> The big problem was that I was not able to reproduce this problem neither at my end nor at the systems used for PIT testing. Only Sergey had produced this NPE till now.
If you cannot reproduce this exception on the system w/o
printers, then it is interesting what will return this code:

  259         ::EnumPrinters(PRINTER_ENUM_LOCAL | PRINTER_ENUM_CONNECTIONS,
  260                        NULL, 4, pPrinterEnum, cbNeeded, &cbNeeded,
  261                        &cReturned);
  262
  263         if (cReturned > 0) {....}

what will happen if you try to print something to the printer
which is returned in the case above?

-- 
Best regards, Sergey.


More information about the 2d-dev mailing list