java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.firebase.storage.StorageReference com.google.firebase.storage.StorageReference.child(java.lang.String)' on a null object reference

Stack Overflow | Abacus Rathu | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Unable to resolve symbol storageRef in firebase

    Stack Overflow | 7 months ago | Abacus Rathu
    java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.firebase.storage.StorageReference com.google.firebase.storage.StorageReference.child(java.lang.String)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'com.google.firebase.storage.StorageReference com.google.firebase.storage.StorageReference.child(java.lang.String)' on a null object reference

      at nidhinkumar.firebaseexample.Sample.onCreate()
    2. nidhinkumar.firebaseexample
      Sample.onCreate
      1. nidhinkumar.firebaseexample.Sample.onCreate(Sample.java:31)
      1 frame
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6092)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2468)
      3 frames