OpenLiberty / liberty-language-server

The Liberty Config Language Server provides language server features for Liberty server configuration files through any of the supported client IDEs.
Eclipse Public License 2.0
5 stars 11 forks source link

Fix divide by zero for code action #244

Closed cherylking closed 10 months ago

cherylking commented 10 months ago

The AddFeature code action can get the following exception if the indent returned by request.getXMLGenerator().getWhitespacesIndent(); is zero.

Screenshot 2023-11-03 at 5 14 33 PM