mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Check for missing project before checking key
This commit is contained in:
+6
-1
@@ -78,7 +78,12 @@ public class PostbackManager {
|
||||
|
||||
public void checkPostbackKey(String projectName, String postbackKey)
|
||||
throws InvalidPostbackKeyException {
|
||||
postbackContentsTable.get(projectName).checkPostbackKey(postbackKey);
|
||||
PostbackPromise postbackPromise = postbackContentsTable.get(projectName);
|
||||
if (postbackPromise == null) {
|
||||
throw new InvalidPostbackKeyException(); // project not found; can't check key
|
||||
} else {
|
||||
postbackPromise.checkPostbackKey(postbackKey);
|
||||
}
|
||||
}
|
||||
|
||||
private String randomString() {
|
||||
|
||||
Reference in New Issue
Block a user