Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference getDouble
问题 I am using react-native-maps library to show google maps in react-native application. I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using animateCamera trying to rotate the map like the following: this.map.animateCamera({ heading: rotation, center: {latitude: currentLocation.latitude, longitude: currentLocation.longitude}, pitch: this.state.currentAngle }, {duration: 1000}); I've checked and rotation,