mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
Merge remote-tracking branch 'origin/GP-5938_dev747368_sevenzip_bz2_getsize_npe'
This commit is contained in:
commit
f501ffccd2
1 changed files with 3 additions and 2 deletions
|
@ -401,8 +401,9 @@ public class SevenZipFileSystem extends AbstractFileSystem<ISimpleInArchiveItem>
|
|||
// In our case, we only handle extract operations.
|
||||
if (!currentItem.isFolder() && extractAskMode == ExtractAskMode.EXTRACT) {
|
||||
try {
|
||||
currentCacheEntryBuilder = fsService.createTempFile(currentItem.getSize());
|
||||
monitor.initialize(currentItem.getSize(), "Extracting " + currentName);
|
||||
long size = Objects.requireNonNullElse(currentItem.getSize(), -1L);
|
||||
currentCacheEntryBuilder = fsService.createTempFile(size);
|
||||
monitor.initialize(size, "Extracting " + currentName);
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new SevenZipException(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue