Skip to content

Commit

Permalink
getaccesstoken null exception fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
myungchoi committed Nov 15, 2019
1 parent 68fad54 commit c2ad29b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ public ModelAndView afterAuth(@RequestParam(name = "launch", required = false) S
SmartOnFhirSessionEntry sessionEntry = null;
List<SmartOnFhirSessionEntry> smartSessions = smartOnFhirSession.getSmartOnFhirSessionsByAppId(clientId);
for (SmartOnFhirSessionEntry entry : smartSessions) {
if (entry.getAccessToken().equals(clientId)) {
if (entry.getAccessToken() != null && entry.getAccessToken().equals(clientId)) {
String patientInCode = getPatientIdFromJWT(entry.getAuthorizationCode());
String patientInContext = getPatientFromLaunchContext(launchContext);
if (patientInCode != null && !patientInCode.isEmpty() && patientInContext != null
Expand Down

0 comments on commit c2ad29b

Please sign in to comment.