Skip to content

TypeError: Cannot read property 'indexOf' of null #450

Description

@victorykong

Without using typescript or looking at the type declaration, the parameter obtained from http get query, which is passed into the originalPositionFor method as a string without processing, will result in null mapping. Then sourceContentFor will cause an error.

It is recommended that the display of the library author be converted to number, otherwise it will take a long time to check the problem and it is difficult to locate it. thank you!

image
image
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions