Comments (3)
Interesting. I wish Dart had null language features like Swift, would make this type of code more stable. I'll need to add a null check there, but trying to understand the fundamental issue of why it was null, my guess is it's an empty file, because it resets the read position of the file, then returns a null when the read occurs at the end of the stream. I can fix it to not fail on empty files, which it shouldn't crash, but if this file isn't supposed to be empty, then there might be some other issue too.
from archive.
I pushed the fix (and unit test) for not crashing on empty files. I'll publish the fix shortly.
from archive.
Tested code from master
- can confirm that now archiving works. Thanks!
from archive.
Related Issues (20)
- Unzip protected file failed, Please help me. Thanks a lot HOT 12
- zstandard by facebook HOT 1
- zipDirectory - when ZipFileEncoder is initialized with a password and there are subdirectories in the input directory => Null check operator used on a null value
- addDirectory() When compressing an empty directory with nothing in it, the empty directory is discarded HOT 1
- the autoClose parameter of zip_endcode::addFile is not used
- Zip encode with password creates a "Null check operator used on a null value"
- Is it possible to work with dart:io File directly? HOT 5
- Streaming directly from archive files
- ArchiveFile.string incorrect encodes non-ASCII data (causes dataloss) HOT 3
- It's slow to read zip headers HOT 4
- If it's possible to add a callback function so that can be show now extracting file in progress HOT 2
- Semantic change in Dart 3.5 HOT 4
- Remove the dep on package:pointycastle? HOT 4
- 3.5 Missing property ZipFileEncoder.zipPath HOT 2
- Reusing `AchiveFile` can result in corrupted archives HOT 8
- there is an error:( FormatException:Missing extension byte),if filepath contains a chinese, HOT 1
- `ArchiveFile.rawContent` is null when decoded from an Archive HOT 6
- tar.gz large content
- [Performance] 3.6.1 is much slower than 3.5.0
- [Debug] Exhausted heap space HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archive.