Empty BLOC_DEBUG variable causes error on startup
Just got this error during startup with the latest version from master
with a clean build. BLOC_DEBUG
in assets/env/.env
was blank:
BLOC_DEBUG=
E/flutter ( 9912): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: FormatException: Unexpected end of input (at character 1)
E/flutter ( 9912):
E/flutter ( 9912): ^
E/flutter ( 9912):
E/flutter ( 9912): #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1404:5)
E/flutter ( 9912): #1 _ChunkedJsonParser.close (dart:convert-patch/convert_patch.dart:522:7)
E/flutter ( 9912): #2 _parseJson (dart:convert-patch/convert_patch.dart:41:10)
E/flutter ( 9912): #3 JsonDecoder.convert (dart:convert/json.dart:505:36)
E/flutter ( 9912): #4 JsonCodec.decode (dart:convert/json.dart:156:41)
E/flutter ( 9912): #5 jsonDecode (dart:convert/json.dart:96:10)
E/flutter ( 9912): #6 debugBLoC (package:tc_frontend/bloc/tc_bloc_debug_decision.dart:35:7)
E/flutter ( 9912): #7 debugBLoC (package:tc_frontend/bloc/tc_bloc_debug_decision.dart)
E/flutter ( 9912): #8 TCBlocDelegate.build (package:tc_frontend/bloc/tc_bloc_delegate.dart:47:10)
E/flutter ( 9912): <asynchronous suspension>
E/flutter ( 9912): #9 main (package:tc_frontend/main.dart:94:50)
E/flutter ( 9912): <asynchronous suspension>
E/flutter ( 9912): #10 _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:233:25)
E/flutter ( 9912): #11 _rootRun (dart:async/zone.dart:1190:13)
E/flutter ( 9912): #12 _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter ( 9912): #13 _runZoned (dart:async/zone.dart:1630:10)
E/flutter ( 9912): #14 runZonedGuarded (dart:async/zone.dart:1618:12)
E/flutter ( 9912): #15 _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:225:5)
E/flutter ( 9912): #16 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
E/flutter ( 9912): #17 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
E/flutter ( 9912):