diff --git a/src/main/java/org/jabref/logic/sharelatex/WebSocketClientWrapper.java b/src/main/java/org/jabref/logic/sharelatex/WebSocketClientWrapper.java index e36a0c8f6b2..cb55e3a6443 100644 --- a/src/main/java/org/jabref/logic/sharelatex/WebSocketClientWrapper.java +++ b/src/main/java/org/jabref/logic/sharelatex/WebSocketClientWrapper.java @@ -215,7 +215,7 @@ private void parseContents(String message) { joinDoc(docId); } - if (message.startsWith("[null,{", ShareLatexParser.JSON_START_OFFSET)) { + if (message.startsWith("[null,{", message.indexOf("+") + 1)) { System.out.println("We get a list with all files"); //We get a list with all files Map dbWithID = parser.getBibTexDatabasesNameWithId(message);