Description
When classesTotal == 0 then the following generates an error:
log.info( "Minimized " + classesTotal + " -> " + classesKept + " (" + 100 * classesKept / classesTotal + "%)" );
An IF conditional should be added so that this error is handled gracefully
if(classesTotal != 0) { log.info( "Minimized " + classesTotal + " -> " + classesKept + " (" + 100 * classesKept / classesTotal + "%)" ); } else { log.info( "Minimized " + classesTotal + " -> " + classesKept); }
Attachments
Issue Links
- relates to
-
MSHADE-209 [REGRESSION] "java.lang.ArithmeticException: / by zero" in MinijarFilter
- Closed