diff --git a/lib/main.dart b/lib/main.dart index c6d4000..f7ebb67 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -70,7 +70,7 @@ class AitrainerApp extends StatelessWidget { realSupportedLocale = supportedLocale; } }); - if ( locale.countryCode != null && realSupportedLocale.countryCode != locale.countryCode ) { + if ( locale != null && realSupportedLocale.countryCode != locale.countryCode ) { print ("Locale " + locale.countryCode + " not supported on this device :("); } return realSupportedLocale;