fixed problem with mime being null in Attachment

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-01-02 23:53:04 +01:00
parent 6b0d3a6bc4
commit dcfc2414b3
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,6 @@ import org.json.JSONObject;
*/
public record Attachment(URL url, String mime) {
public JSONObject json() {
return new JSONObject(Map.of("url", url.toString(), "mime", mime));
return new JSONObject(Map.of("url", url.toString(), "mime", mime == null ? "content/unknown" : mime));
}
}

View File

@@ -0,0 +1,4 @@
package de.srsoftware.cal.importer.weimar;
public class CKeller {
}