-
Bug
-
Resolution: Done
-
Major
-
0.35
-
None
-
None
In a rare case, if maxLength is long enough and maxLength > termWidth, then numColumns = 0 will cause "java.lang.ArithmeticException: / by zero"
Parser.java
int numColumns = termWidth / maxLength; if(numColumns > displayList.size()) // we dont need more columns than items numColumns = displayList.size(); int numRows = displayList.size() / numColumns;
This is the root reason of failure in https://bugzilla.redhat.com/show_bug.cgi?id=915594
- is related to
-
WFLY-36 CommandLineConsole: ls in subsystem=datasources causing java.lang.ArithmeticException: / by zero
- Closed