Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
4.34k
stars
1.33k
forks
source link
Android: can't call java.lang.String com.mapbox.geojson.GeoJson.type() on null object when adding trailing line behind location history #16651
Closed
AaronConvery closed 1 year ago
Platform: Android Studio Mapbox SDK version: 9.1.0
Steps to trigger behavior
1.Create a new linestring using point list of location coordinates 2.Add linestring to a new feature 3.Create new geoJson source using the feature
Expected behavior
The app does not crash and displays a trailing line behind the users movement
Actual behavior
The app crashes when loaded up due to the geoJsonSource code with the error code as seen in the title
Please see main activity below
public class LocationComponentActivity extends AppCompatActivity implements OnMapReadyCallback, PermissionsListener, LocationListener, IBaseGpsListener {
}