Still getting same Null pointer execption on SDK 34

If a close application then try to reopen without no error it crashes and closes immediately .

But only android devices error. On standalone version after crash it says.

java.lang.NullPointerException: Attempt to invoke interface method ‘java.util.Map org.unimodules.b.j.d.getOptions()’ on a null object reference
at expo.modules.location.taskConsumers.LocationTaskConsumer.shouldReportDeferredLocations(
at expo.modules.location.taskConsumers.LocationTaskConsumer.maybeReportDeferredLocations(
at expo.modules.location.taskConsumers.LocationTaskConsumer.access$100(
at expo.modules.location.taskConsumers.LocationTaskConsumer$1.onComplete(
at Source:4)
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)

if (Platform.OS === ‘ios’) {
Location.startLocationUpdatesAsync(‘LOCATION_WATCH’, customConstants.GEOLOCATION_BG_OPTIONS, this.locationChanged);

If i remove OS case on standalone or USB debugging on second start of application crash application with null pointer exception.

Please track this bug.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.