Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Fixed crash when geocoder return null #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
buildToolsVersion '26.0.2'

defaultConfig {
minSdkVersion 16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public void geocodePosition(ReadableMap position, Promise promise) {
WritableArray transform(List<Address> addresses) {
WritableArray results = new WritableNativeArray();

if (addresses == null) {
return results;
}

for (Address address: addresses) {
WritableMap result = new WritableNativeMap();

Expand Down