Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adb_pull_stderr TypeError: Cannot read property 'length' of null #141

Open
vKolerts opened this issue Jul 14, 2021 · 1 comment
Open

adb_pull_stderr TypeError: Cannot read property 'length' of null #141

vKolerts opened this issue Jul 14, 2021 · 1 comment

Comments

@vKolerts
Copy link

vKolerts commented Jul 14, 2021

dist/src/adb/parser.js:178

readByteFlow(howMany, targetStream) {
        let tryRead;
        let errorListener;
        let endListener;
        return new bluebird_1.default((resolve, reject /*, onCancel*/) => {
            tryRead = () => {
                if (howMany) {
                    const chunk = this.stream.read(howMany);
                    // Try to get the exact amount we need first. If unsuccessful, take
                    // whatever is available, which will be less than the needed amount.
                    while (chunk || this.stream.read()) {
                        howMany -= chunk.length;

if chunk is null it can't contain length property..

@drauggres
Copy link

fixed in #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants