Skip to content

Commit 935adba

Browse files
committed
v1.0.35
1 parent 9d514d2 commit 935adba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

android/src/main/java/org/lovebing/reactnative/baidumap/support/ConvertUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class ConvertUtils {
2626
private static final Map<Class, Field[]> FILED_MAP = new HashMap<>();
2727

2828
public static LatLng convert(LocationData locationData) {
29-
if (!locationData.isValid()) {
29+
if (locationData == null || !locationData.isValid()) {
3030
return null;
3131
}
3232
return new LatLng(locationData.getLatitude(), locationData.getLongitude());

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-baidu-map",
3-
"version": "1.0.34",
3+
"version": "1.0.35",
44
"description": "Baidu Map SDK modules and views for React Native(Android & iOS), support react native 0.61+. 百度地图 React Native 模块,支持 react native 0.61+,已更新到最新的百度地图 SDK 版本。",
55
"main": "index.js",
66
"scripts": {

react-native-baidu-map.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Pod::Spec.new do |s|
1010

1111
s.name = "react-native-baidu-map"
12-
s.version = "1.0.34"
12+
s.version = "1.0.35"
1313
s.summary = "Baidu Map for React Native"
1414

1515
s.description = <<-DESC
@@ -41,7 +41,7 @@ Pod::Spec.new do |s|
4141
# Supports git, hg, bzr, svn and HTTP.
4242
#
4343

44-
s.source = { :http => "http://repo.codeboot.net/pod/http/react-native-baidu-map/1.0.34/source.zip" }
44+
s.source = { :http => "http://repo.codeboot.net/pod/http/react-native-baidu-map/1.0.35/source.zip" }
4545

4646
s.source_files = "ios/RCTBaiduMap/**/*.{h,m}"
4747
s.exclude_files = ""

0 commit comments

Comments
 (0)