--------- beginning of crash
12-03 14:10:41.959 2699-2699/com.example.user.testv2 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.user.testv2, PID: 2699
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(java.lang.String, java.lang.String)' on a null object reference
at com.example.user.testv2.RegistrationActivity.reg(RegistrationActivity.java:38)
at com.example.user.testv2.RegistrationActivity.onClick(RegistrationActivity.java:55)
at android.view.View.performClick(View.java:5637)
at android.view.View$PerformClick.run(View.java:22429)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)