You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the dart sdk v1.14.0 returns a Null now instead of empty string, for packageRoot.
I just updated my local copy of standalone.dart to test for null first and it work fine now.
if (packageRoot != null && packageRoot.isNotEmpty && p.startsWith(_packagesPrefix)) {
Next time someone does an update, maybe they could look at this.
Hi, the dart sdk v1.14.0 returns a Null now instead of empty string, for packageRoot.
I just updated my local copy of standalone.dart to test for null first and it work fine now.
if (packageRoot != null && packageRoot.isNotEmpty && p.startsWith(_packagesPrefix)) {
Next time someone does an update, maybe they could look at this.
api details
++++++++++++
change from
https://api.dartlang.org/1.13.2/dart-io/Platform/packageRoot.html
If there is no --package-root flag, then the empty string is returned.
to
https://api.dartlang.org/1.14.0/dart-io/Platform/packageRoot.html
If there is no --package-root flag, then null is returned.
Error details
+++++++++++++++++
Unhandled exception:
The null object does not have a getter 'isNotEmpty'.
NoSuchMethodError: method not found: 'isNotEmpty'
Receiver: null
Arguments: []
#0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
#1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#2 _loadAsBytes (package:timezone/standalone.dart:48:21)
#3 initializeTimeZone (package:timezone/standalone.dart:95:10)
#4 main (file:///home/pi/time_dart14/main.dart:5:4)
#5 _startIsolate. (dart:isolate-patch/isolate_patch.dart:261)
#6 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)
The text was updated successfully, but these errors were encountered: