Skip to content

Commit a6d491b

Browse files
Update PrivacyIDEA.java
fix nullPointerException
1 parent 1e23c86 commit a6d491b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/privacyidea/PrivacyIDEA.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private PIResponse getPIResponse(String type, String input, String pass, Map<Str
158158
}
159159
String response = runRequestAsync(ENDPOINT_VALIDATE_CHECK, params, headers, false, POST);
160160
// Shutdown the scheduler if user successfully authenticated
161-
if (this.parser.parsePIResponse(response).value)
161+
if (this.parser.parsePIResponse(response) != null && this.parser.parsePIResponse(response).value)
162162
{
163163
this.scheduler.shutdownNow();
164164
}

0 commit comments

Comments
 (0)