diff --git a/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java b/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java index fde4eef..297537f 100644 --- a/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java +++ b/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java @@ -48,7 +48,8 @@ //app/CosmosにGETメソッドに必要なデータを取得 Cosmos app = (Cosmos) getApplication(); String token = app.getToken(); - Group group = app.getCurentGroup(); + String gId = app.getCurentGroup().getgId(); + // ListViewのインスタンスを生成 final ListView listView = findViewById(R.id.list_view); @@ -62,7 +63,7 @@ GroupsRest MemberListService = retrofit.create(GroupsRest.class); //API呼び出しのための値入力 - Call call = MemberListService.getMemberListByGid(group.getgId(),token); + Call call = MemberListService.getMemberListByGid(gId,token); //サーバからデータ受け取り call.enqueue(new Callback() { @@ -79,6 +80,7 @@ // icon.add(result.members.get(i).iconUri); userName[i] = result.members.get(i).uId; userIcon[i] = result.members.get(i).uri; + } } else {