Solved agent agency NULL

This commit is contained in:
valentin 2021-01-01 21:11:08 +01:00
parent 204c820c67
commit 2e1bdf74aa

View File

@ -66,6 +66,8 @@ public class AgentsActivityViewModel extends AndroidViewModel implements Lifecyc
// Log.d("CAT", "============" + integer + "== NULL ========="); // Log.d("CAT", "============" + integer + "== NULL =========");
// } // }
Agent agent = agentRepository.getAgentById(stored_agent_id); Agent agent = agentRepository.getAgentById(stored_agent_id);
agent.setAgency(agentRepository.getAgency(agent));
// Log.d("CAT", "========ID====" + agent.getAgency().agencyId + "==========="); // Log.d("CAT", "========ID====" + agent.getAgency().agencyId + "===========");