Skip to content

Commit

Permalink
Debug add journey
Browse files Browse the repository at this point in the history
  • Loading branch information
sefadegirmenci committed Jul 18, 2022
1 parent 98a5ecd commit ed06a68
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public User addJourney(Journey journey, String userName) {
//userRepository.delete(user);
JourneyList journeys = user.getJourneys();

if(journey == null) {
System.out.println("Journeys is null");
}
if(journeys.getJourneyList() == null) {
System.out.println("List of journey is null");
}

user.setJourneys(journeys);
return userRepository.save(user);
Expand Down

0 comments on commit ed06a68

Please sign in to comment.