Adding just deleted entries to RAR archive will lead to crash. It's tested on the latest master (13721e2a673a578ac955fb4f4be8e409668b3f84).
Steps to reproduce:
- Create a new RAR archive.
- Add any folder to it.
- Delete the added folder.
- Add it again. <-- Here it crashes
It doesn't matter if archive became empty after deleting the folder.
The bug seems to be present only for RAR archives, tested the same steps on 7-z - it's okay.