mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Fix for NPE when place picker name is unavailable
Fixes #6671 // FREEBIE
This commit is contained in:
parent
782bd6003b
commit
4dd5a92817
@ -20,10 +20,10 @@ public class SignalPlace {
|
||||
private static final String TAG = SignalPlace.class.getSimpleName();
|
||||
|
||||
@JsonProperty
|
||||
private String name;
|
||||
private CharSequence name;
|
||||
|
||||
@JsonProperty
|
||||
private String address;
|
||||
private CharSequence address;
|
||||
|
||||
@JsonProperty
|
||||
private double latitude;
|
||||
@ -32,8 +32,8 @@ public class SignalPlace {
|
||||
private double longitude;
|
||||
|
||||
public SignalPlace(Place place) {
|
||||
this.name = place.getName().toString();
|
||||
this.address = place.getAddress().toString();
|
||||
this.name = place.getName();
|
||||
this.address = place.getAddress();
|
||||
this.latitude = place.getLatLng().latitude;
|
||||
this.longitude = place.getLatLng().longitude;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user