|
@@ -566,6 +566,9 @@
|
|
|
}
|
|
|
|
|
|
- (void)showHUDHint:(CPDFAnnotation *)newActiveAnnotation {
|
|
|
+ if (self.window == nil) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
CGRect rect = [self convertRect:newActiveAnnotation.bounds fromPage:newActiveAnnotation.page];
|
|
|
if (rect.size.width != 0 && rect.size.height != 0) {
|
|
|
CPDFListHoverAnnotationViewController *popViewController = [[CPDFListHoverAnnotationViewController alloc] initWithNibName:@"CPDFListHoverAnnotationViewController" bundle:[NSBundle mainBundle] annotation:newActiveAnnotation];
|