Skip to content

fix: 'Null' is not a subtype of type 'String' in type cast on Linux #405

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stMerlHin
Copy link

@stMerlHin stMerlHin commented Jun 18, 2025

Description

This PR is a fix for #396.

flutterfire_cli launches firebase commands using Process.run. On Linux, we sometimes have an exitCode that is greater than 0 even though the result returned by the firebase command has a status equal to success. Result, error is null but there is a line that tries to access it by casting it to String. In this fix, I first tries to see if the result returned by the firebase command has a status that is equal to success. If it does not, this is where we throw an exception

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)
  • 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
  • ! -- Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 refactor -- Code refactor
  • ci -- Build configuration change
  • 📝 docs -- Documentation
  • 🗑️ chore -- Chore

@stMerlHin stMerlHin changed the title fix for #396 [fix] 'Null' is not a subtype of type 'String' in type cast on Linux Jun 18, 2025
@stMerlHin stMerlHin changed the title [fix] 'Null' is not a subtype of type 'String' in type cast on Linux fix: 'Null' is not a subtype of type 'String' in type cast on Linux Jun 18, 2025
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.

1 participant