mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
61a5c5870c7363034eb20b19b54b3df6e622da39
This fixes a case when de API sends a version without user. There was a bug allowing to create anonymous versions in the application and we have to support the old data. The problem here is that SnapshotInfo classes are inflated from json via Gson. This method does not call any constructor and, since the json does not include the ‘user’ key, the bridge crashes because we’re not expecting null users. I’m not happy with this fix, but is the minimum solution that does not affect anything else.
Languages
JavaScript
61.6%
TypeScript
31.8%
SCSS
2.5%
Java
2%
Pug
0.7%
Other
1.2%