File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
android/src/main/java/com/baseflow/geocoding Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## 4.0.1
2
+
3
+ * Resolved issue #271 where the app could crash if the onError message was null. The error message is now properly handled as nullable.
4
+
1
5
## 4.0.0
2
6
3
7
* ** BREAKING CHANGES** Please update to Flutter 3.29+ before updating to this version
Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ public void onGeocode(List<Address> addresses) {
129
129
}
130
130
131
131
@ Override
132
- public void onError (String errorMessage ) {
132
+ public void onError (@ Nullable String errorMessage ) {
133
133
result .error (
134
134
"IO_ERROR" ,
135
- String . format ( errorMessage ) ,
135
+ errorMessage != null ? errorMessage : "Unknown error occurred" ,
136
136
null );
137
137
}
138
138
});
@@ -163,10 +163,10 @@ public void onGeocode(List<Address> addresses) {
163
163
}
164
164
165
165
@ Override
166
- public void onError (String errorMessage ) {
166
+ public void onError (@ Nullable String errorMessage ) {
167
167
result .error (
168
168
"IO_ERROR" ,
169
- String . format ( errorMessage ) ,
169
+ errorMessage != null ? errorMessage : "Unknown error occurred" ,
170
170
null );
171
171
}
172
172
});
@@ -198,10 +198,10 @@ public void onGeocode(List<Address> addresses) {
198
198
}
199
199
200
200
@ Override
201
- public void onError (String errorMessage ) {
201
+ public void onError (@ Nullable String errorMessage ) {
202
202
result .error (
203
203
"IO_ERROR" ,
204
- String . format ( errorMessage ) ,
204
+ errorMessage != null ? errorMessage : "Unknown error occurred" ,
205
205
null );
206
206
}
207
207
});
Original file line number Diff line number Diff line change 1
1
name : geocoding_android
2
2
description : A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features.
3
- version : 4.0.0
3
+ version : 4.0.1
4
4
repository : https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_android
5
5
issue_tracker : https://github.com/Baseflow/flutter-geocoding/issues
6
6
You can’t perform that action at this time.
0 commit comments