If compiler failed to produce Kernel binary then compile(...) returns null to the caller. If we don't check for null we end up trying to run file called "null" which causes a very confusing crash of the flutter_tester.
If compiler failed to produce Kernel binary then compile(...) returns null to the caller. If we don't check for null we end up trying to run file called "null" which causes a very confusing crash of the flutter_tester.