Commit ab6bee06 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

don't fetch glyph content if glyph does not exist

parent 33bad0b4
Pipeline #21416 failed with stage
in 7 minutes and 40 seconds
......@@ -69,8 +69,10 @@ public class Glyph implements Serializable {
public Glyph(Glyph original) {
// we should reference to the same file
setFile(original.getFile());
//make sure that the content is available
original.getFile().getFileContent();
if (original.getFile() != null) {
// make sure that the content is available
original.getFile().getFileContent();
}
}
public UploadedFileEntry getFile() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment