Skip to content

Commit c79c314

Browse files
author
ignacio
committed
Skips from reloading the input accessory view if the object itself is not yet available
1 parent 84019b9 commit c79c314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Classes/SLKTextViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ - (void)slk_reloadInputAccessoryViewIfNeeded
10441044
}
10451045
}
10461046
// Reload only if the input views if the frame doesn't match the text input bar's.
1047-
else if (CGRectGetHeight(self.textView.inputAccessoryView.frame) != CGRectGetHeight(self.textInputbar.bounds)) {
1047+
else if (self.textView.inputAccessoryView && CGRectGetHeight(self.textView.inputAccessoryView.frame) != CGRectGetHeight(self.textInputbar.bounds)) {
10481048
self.textView.inputAccessoryView = [self emptyInputAccessoryView];
10491049
[self.textView refreshInputViews];
10501050
}

0 commit comments

Comments
 (0)