Skip to content

Exception by empty section #68

@gilbertf

Description

@gilbertf

A document with empty chapter can not be checked by textidote due to the following error:
Exception in thread "main" java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at ca.uqac.lif.textidote.rules.CheckSubsectionSize.evaluate(CheckSubsectionSize.java:102)
at ca.uqac.lif.textidote.Linter.evaluateAll(Linter.java:149)
at ca.uqac.lif.textidote.Main.mainLoop(Main.java:567)
at ca.uqac.lif.textidote.Main.mainLoop(Main.java:124)
at ca.uqac.lif.textidote.Main.main(Main.java:110)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions