Skip to content

Parser crash #24

@matthart-com

Description

@matthart-com

Instantiating defaultParser on real device crashes. The fix I did is the following, plus instantiating via setDefaultParser(with: Configuration)

private static var _defaultParser: Parser?
    public static var defaultParser: Parser {
      get {
        if _defaultParser == nil {
          _defaultParser = Parser(with: Configuration.configuration(fromJSONResource: ConfigurationType.v3)!)
        }
        return _defaultParser!
      }
      set {
        _defaultParser = newValue
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions