Runtime Error Error in ./HomePage class HomePage_Host - caused by: Cannot read property 'uid' of null


#1
Runtime Error 
Error in ./HomePage class HomePage_Host - caused by: Cannot read property 'uid' of null

I’m… not sure how to explain this. What can I do to avoid this from happening?

Ionic Framework: 2.0.0-rc.3
Ionic Native: 2.2.3
Ionic App Scripts: 0.0.45
Angular Core: 2.1.1
Angular Compiler CLI: 2.1.1
Node: 6.9.1
OS Platform: Windows 10
Navigator Platform: Win32


#2

Look for something referencing a ‘uid’ property of something and make it not be null before it is referenced.


#3

the only “uid” anywhere is the

this.firebase.currentUser.uid . I’ll see what I can do. thank you.


#4

Any solution to this? How can I make ‘uid’ not null. The reference is this.userProfileRef = firebase.database().ref(userProfile/${firebase.auth().currentUser.uid});

Any suggestions?