Skip to content

[SuperEditor][Bug][iOS] - Error when initializing the composer with a non-null initial selection. #3025

Description

@matthew-carroll

In a client app, when initializing the composer with a selection on iOS, we get the following error:

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building IosHandlesDocumentLayer(dirty, state:
IosControlsDocumentLayerState#6fb86):
Null check operator used on a null value

When the exception was thrown, this was the stack:
#0      IosControlsDocumentLayerState.computeLayoutDataWithDocumentLayout (package:super_editor/src/infrastructure/platforms/ios/ios_document_controls.dart:752:75)
#1      DocumentLayoutLayerState.computeLayoutData (package:super_editor/src/infrastructure/documents/document_layers.dart:50:12)
#2      ContentLayerState.build (package:super_editor/src/infrastructure/content_layers.dart:708:21)
#3      StatefulElement.build (package:flutter/src/widgets/framework.dart:5934:27)
#4      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5820:15)
#5      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5985:11)

Metadata

Metadata

Labels

area_supereditorPertains to SuperEditorbntyA mis-spelled version of the desired word to try to keep these slop bots out of our repo.f:clickuptime:2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions