Skip to content

Division by Zero exception when compressing empty folder #134

@dotted

Description

@dotted

Steps to reproduce on version 2.0b3

  1. Create new folder
  2. Attempt to compress the folder though Compact GUI, and it should go boom.

For the record I tested using the following folder names:

  • .GoPro
  • .QtWebEngineProcess
  • Test

All the folders were empty and caused the exception.

Stack trace, apologies for being in danish:

Se slutningen af denne meddelelse, hvis du vil have detaljer om,
hvordan du starter JIT-fejlfinding i stedet for denne dialogboks.

************** Undtagelsestekst **************
System.DivideByZeroException: Det blev forsøgt at dividere med nul.
   ved System.Decimal.FCallDivide(Decimal& d1, Decimal& d2)
   ved Microsoft.VisualBasic.CompilerServices.Operators.DivideDecimal(IConvertible Left, IConvertible Right)
   ved Microsoft.VisualBasic.CompilerServices.Operators.DivideObject(Object Left, Object Right)
   ved CompactGUI.Compact.CalculateSaving()
   ved CompactGUI.Compact.ProgressTimer_Tick(Object sender, EventArgs e)
   ved System.Windows.Forms.Timer.OnTick(EventArgs e)
   ved System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   ved System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions