|
@@ -29,12 +29,14 @@ cc.Class({
|
|
|
let target = Global.friendList.find(n => {
|
|
|
return n.uid == uid
|
|
|
})
|
|
|
-
|
|
|
- this.nick = target.nick
|
|
|
-
|
|
|
- this.stars = target.stars
|
|
|
-
|
|
|
- this.head = target.head
|
|
|
+
|
|
|
+ if(target) {
|
|
|
+ this.nick = target.nick
|
|
|
+
|
|
|
+ this.stars = target.stars
|
|
|
+
|
|
|
+ this.head = target.head
|
|
|
+ }
|
|
|
|
|
|
this.buildingInfos = [];
|
|
|
|