mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Check for missing project before checking key
This commit is contained in:
parent
1ac07526dc
commit
42d1236063
1 changed files with 6 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue