diff --git a/submodules/LegacyComponents/Sources/TGPhotoCaptionInputMixin.m b/submodules/LegacyComponents/Sources/TGPhotoCaptionInputMixin.m index f67a281c37..cd9460a9ea 100644 --- a/submodules/LegacyComponents/Sources/TGPhotoCaptionInputMixin.m +++ b/submodules/LegacyComponents/Sources/TGPhotoCaptionInputMixin.m @@ -49,7 +49,10 @@ UIView *parentView = [self _parentView]; - id inputPanel = _stickersContext.captionPanelView(); + id inputPanel = nil; + if (_stickersContext) { + inputPanel = _stickersContext.captionPanelView(); + } _inputPanel = inputPanel; __weak TGPhotoCaptionInputMixin *weakSelf = self;