childName cannot be null or empty

Asked by At

childName cannot be null or empty but in child already has value how to fix it?i'm try manual input value on firebase still not working .

btn_continue.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
//                 Set firebase
            reference = FirebaseDatabase.getInstance().getReference()
                    .child("Users").child(username_key_new);
            storage = FirebaseStorage.getInstance().getReference()
                    .child("Photousers").child(username_key_new);



            Intent gosucces = new Intent(RegisterTwoActivity.this, SuccessRegisterActivity.class);
            startActivity(gosucces);
        }
    });

0 Answers