Skip to content

[Bug][GenerationLogic] Length cannot be less than zero.Parameter name: length #7

@dingysh2022

Description

@dingysh2022

We are facing this issue Length cannot be less than zero. Parameter name: length when trying to use the app. The following is the corresponding stack trace.

   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at System.String.Substring(Int32 startIndex, Int32 length)
   at PlantUMLCodeGeneratorGUI.Class.Set(String classContent)
   at PlantUMLCodeGeneratorGUI.Namespace.ProcessFullContent(String fullContent)
   at PlantUMLCodeGeneratorGUI.Namespace.Set(String namespaceContent)
   at PlantUMLCodeGeneratorGUI.Namespace.Set(String namespaceContent)
   at PlantUMLCodeGeneratorGUI.Namespace.Set(String namespaceContent)
   at PlantUMLCodeGeneratorGUI.Namespace.Set(String namespaceContent)
   at PlantUMLCodeGeneratorGUI.Processor.Process(String fileContent, Settings settings, Namespace& defaultNamespace)
   at PlantUMLCodeGeneratorGUI.frmMain.<btnGenerate_Click>b__5_0(Object o)

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