We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a9d320 + 0b970f1 commit 05c0dceCopy full SHA for 05c0dce
src/main/java/io/shiftleft/controller/PatientController.java
@@ -32,7 +32,9 @@ public class PatientController {
32
@RequestMapping(value = "/patients", method = RequestMethod.GET)
33
public Iterable<Patient> getPatient() {
34
Patient pat = patientRepository.findOne(1l);
35
- log.info("First Patient is {}", pat.toString());
+ if (pat != null) {
36
+ log.info("First Patient is {}", pat.toString());
37
+ }
38
return patientRepository.findAll();
39
}
40
0 commit comments