Skip to content

fix: (Throws FormatException: Unexpected end of input (at character 1)) - check a file has content before process#497

Open
a-benamer wants to merge 1 commit into
Baseflow:developfrom
a-benamer:fix-check-file-has-content
Open

fix: (Throws FormatException: Unexpected end of input (at character 1)) - check a file has content before process#497
a-benamer wants to merge 1 commit into
Baseflow:developfrom
a-benamer:fix-check-file-has-content

Conversation

@a-benamer

Copy link
Copy Markdown

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Fixes an exception caused by empty files

⤵️ What is the current behavior?

Throws FormatException: Unexpected end of input (at character 1)

🆕 What is the new behavior (if this is a feature change)?

No error logged

💥 Does this PR introduce a breaking change?

No

🐛 Recommendations for testing

📝 Links to relevant issues/docs

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current develop

@rickdijk
rickdijk force-pushed the fix-check-file-has-content branch from c9cb817 to 2accefc Compare July 20, 2026 17:57

await tempFile.delete();
FlutterError.onError = originalOnError;
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
});
},
);

Please format after this change so the test description line formats to a line of its own. Just for readability

@rickdijk

Copy link
Copy Markdown
Contributor

Please resolve the CI issues, thanks in advance

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

Successfully merging this pull request may close these issues.

3 participants