We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b6448 commit 81c20a2Copy full SHA for 81c20a2
src/qz/printer/PrintServiceMatcher.java
@@ -50,6 +50,10 @@ public static NativePrinterMap getNativePrinterList() {
50
public static NativePrinter getDefaultPrinter() {
51
PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
52
53
+ if(defaultService == null) {
54
+ return null;
55
+ }
56
+
57
NativePrinterMap printers = NativePrinterMap.getInstance();
58
if (!printers.contains(defaultService)) {
59
printers.putAll(defaultService);
0 commit comments