Error While Working with FirebaseDB in Extension

Declared Varible

private FirebaseDB fb;

In Constructor

fb = FirebaseDB(container);

In Simple Function

fb.FirebaseURL("https://demo-project.firebaseio.com");

I'm getting this error java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference while testing extension in companion.

Query: How to solve this error and how to listen for GotValue Event in my extension

@g037a it looks like you found the solution to your problem yourself... please share the solution here in this thread to help others with the same problem in future... thank you...

Taifun

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