fix possible npe
This commit is contained in:
parent
241233315c
commit
bfb309041d
1 changed files with 3 additions and 2 deletions
|
@ -1063,7 +1063,8 @@ public class ShowRouteInfoDialogFragment extends BaseOsmAndFragment {
|
|||
GeocodingLookupService.AddressLookupRequest addressLookupRequest = new GeocodingLookupService.AddressLookupRequest(latLon, new GeocodingLookupService.OnAddressLookupResult() {
|
||||
@Override
|
||||
public void geocodingDone(String address) {
|
||||
if (!TextUtils.isEmpty(address) && !address.equals(currentAddress)) {
|
||||
if (!TextUtils.isEmpty(address) && !address.equals(currentAddress)
|
||||
&& locationTv != null && container != null) {
|
||||
locationTv.setText(address);
|
||||
container.setMinimumHeight(dpToPx(80));
|
||||
}
|
||||
|
@ -2196,4 +2197,4 @@ public class ShowRouteInfoDialogFragment extends BaseOsmAndFragment {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue