DJI-Mobile-SDK-Tutorials / Android-GSDemo-Gaode-Map

This demo shows you how to implement the DJIWaypoint Mission features and get familiar with the usages of DJIMissionManager.
MIT License
43 stars 23 forks source link

When addListener( ) is run, a null pointer exception occurs #2

Closed jiyangyang0319 closed 6 years ago

jiyangyang0319 commented 7 years ago

Is this issue about bugs or crash issues of the Sample Code?

Yep, then please delete this template and provide the following infos for us to help investigate the issue:

When addListener( ) is run, a null pointer exception occurs Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'dji.sdk.mission.waypoint.WaypointMissionOperator dji.sdk.mission.MissionControl.getWaypointMissionOperator()' on a null object reference

jiyangyang0319 commented 7 years ago

when I connect to Dji mavic,this exception is still there

oliverou commented 7 years ago

Hi @jiyangyang0319 , please provide the following info for us to investigate the issue:

Also, please make sure the DJI product has connected using the ConnectionActivity to check before you enter the MainActivity. You can also check this sample's tutorial for implementation details: Create a MapView and Waypoint Application.