Issue with App Crashing

Hello

I'm facing an issue with my app developed using MIT App Inventor. Whenever I launch the app on my device, it crashes immediately, and I'm presented with an error message indicating a 'NullPointerException'. I've tried debugging the issue, but I'm struggling to identify the root cause.

Here are some details about my app:

  • Development platform: MIT App Inventor
  • App version: 2.0
  • Target platform: Android
  • Blocks used: Firebase component, ListPicker

The error message I'm receiving is:

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.app.MainActivity.someMethod()' on a null object reference

I've attempted several troubleshooting steps, including:

  • Reviewing my blocks and ensuring all components are initialized properly.
  • Checking for any uninitialized variables or objects that could cause a NullPointerException.
  • Testing the app on different devices to see if the issue persists across all platforms.

Despite my efforts, the app continues to crash with the same error message. Any guidance on how to resolve this issue would be greatly appreciated.I have checked MIT App Inventor Help - MIT App Inventor Communitysalesforce marketing cloud

Thanks in advance.
stevediaz

Hello Steve,
can you share your aia?