Companion Error: "Attempt to invoke virtual method 'boolean java.lang.String.equals(...)' on a null object reference" only on PC browser

I am getting this error while testing my app with Companion:

"Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference"

Strange behavior:

  • When the project is opened on PC browser and connected to Companion → error occurs

  • If I export the same .aia file and import/open it from mobile Chrome browser → Companion works perfectly with no error

  • APK also works fine

Things I already tried:

  • Export/import .aia

  • Different PC browsers

  • Clearing cache

  • Same WiFi network

The issue happens only when editing/opening the project from desktop browser.

Does the project include a Firebase component?

What Companion version are you running?

yes

latest version nb204b 2.78a

Thanks, you were right. After deleting the Firebase component, the Companion error disappeared completely.

Now the issue is:

  • I still need Firebase in the project

  • Mobile browser + Companion also works

  • Only desktop browser + Companion crashes when Firebase component exists

You can use Firebase without the Firebase component ...

why its working in mobile browser but not in PC browser?

You are not the only one.

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