Skip to content

Null reference exception in Escaping.escape #86

@haf

Description

@haf
  System.NullReferenceException: Object reference not set to an instance of an object
  at Chiron+Escaping+escape@401-1.GenerateNext (System.Collections.Generic.IEnumerable`1[System.Char]& next) [0x00028] in Chiron.fs:401
  at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1[T].MoveNextImpl () [0x00017] in /private/tmp/mono--fsharp-20170301-46369-1vnanly/src/fsharp/FSharp.Core/seq.fs:781
  at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1[T].System-Collections-IEnumerator-MoveNext () [0x00000] in /private/tmp/mono--fsharp-20170301-46369-1vnanly/src/fsharp/FSharp.Core/seq.fs:812
  at Microsoft.FSharp.Collections.SeqModule.ToList[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in /private/tmp/mono--fsharp-20170301-46369-1vnanly/src/fsharp/FSharp.Core/seq.fs:559
  at Chiron+Escaping.escape (System.String s) [0x00010] in <58e26eef7a9f4a1fa7450383ef6ee258>:0
  at Chiron+Formatting.formatString (System.String _arg7) [0x00000] in Chiron.fs:692
  at Chiron+Formatting.formatJson (System.Int32 level, Chiron+Formatting+JsonFormattingOptions options, Chiron+Json _arg1) [0x00082] in Chiron.fs:661

For the last release, unknown tag.

Repro:

Object (Map [("key", String null)]) |> Json.serialize

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions