flutter-woocommerce-app
flutter-woocommerce-app copied to clipboard
[Bug] Checkout : "phone" field
Clearing the phone field during checkout creates an exception:
════════ Exception caught by widgets library ═══════════════════════════════════
The following _CastError was thrown building StatefulBuilder(state: _StatefulBuilderState#bc203):
Null check operator used on a null value
The relevant error-causing widget was
MaterialApp
lib\bootstrap\app.dart:76
When the exception was thrown, this was the stack
#0 _CheckoutDetailsPageState._setFields
package:flutter_app/…/pages/checkout_details.dart:153
#1 _CheckoutDetailsPageState._setFieldsFromCustomerAddress
package:flutter_app/…/pages/checkout_details.dart:124
#2 _CheckoutDetailsPageState.initState
package:flutter_app/…/pages/checkout_details.dart:96
#3 StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:5015
#4 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4853
... Normal element mounting (167 frames)