Select to view content in your preferred language

Field Maps crashing due to NullPointerException

465
3
05-30-2024 07:59 AM
OliverIshmael
Frequent Contributor

Using ArcGIS Online (v 2024.1) Field Maps on a Samsung tablet we are experiencing regular crashing. Having checked the logfile there are multiple instances of [DEBUG (error)] - Uncaught Exception! with the following issue:

java.lang.NullPointerException: Attempt to invoke virtual method 'float android.view.MotionEvent.getX(int)' on a null object reference at com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchLis

 Attempt to invoke virtual method 'float android.view.MotionEvent.getX(int)' on a null object reference

 

Is this a bug?

Is there a workaround?

Tags (3)
0 Kudos
3 Replies
ColinLawrence
Esri Regular Contributor

Hi @OliverIshmael , do you know what workflow you are performing when the app crashes? For example, opening a map or editing a feature. Also, what tablet model and OS version is it?

Regards,
Colin
0 Kudos
OliverIshmael
Frequent Contributor

Hi @ColinLawrence , apologies for the delay. In each case the user had created a feature and was in the process of adding data to the fields and attaching photos. They are using a Samsung Galaxy Tab Active Pro SM-T545, with Android 11.

0 Kudos
ColinLawrence
Esri Regular Contributor

@OliverIshmael Thanks for the reply. Have you been able to narrow it down to the attaching of photos? Are these photos being taken from within the app or attached from storage? If its only happening for new photos can you try attaching from storage as a workaround?

Regards,
Colin
0 Kudos