diff --git a/src/ios/APPPrinterItem.m b/src/ios/APPPrinterItem.m index 671e24f..6342311 100644 --- a/src/ios/APPPrinterItem.m +++ b/src/ios/APPPrinterItem.m @@ -47,7 +47,7 @@ */ + (BOOL) canPrintURL:(nullable NSString *)url { - if (![NSURL URLWithString:url].scheme) + if ([url isEqual:[NSNull null]] || ![NSURL URLWithString:url].scheme) { return UIPrintInteractionController.isPrintingAvailable; }