diff --git a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java index 20a49cf94b75137fe2d5803077d00f8a7969d28e..c756bcb660c50ca6794be99da3110b5ed3373929 100644 --- a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java @@ -2159,7 +2159,8 @@ public class FileBackend { svg.renderToCanvas(canvas, target); return new SVGDrawable(output); - } catch (final IOException | SVGParseException e) { + } catch (final IOException | SVGParseException | IllegalArgumentException e) { + Log.w(Config.LOGTAG, "Could not parse SVG: " + e); return null; } } @@ -2180,7 +2181,8 @@ public class FileBackend { svg.renderToCanvas(canvas); return new SVGDrawable(output); - } catch (final IOException | SVGParseException e) { + } catch (final IOException | SVGParseException | IllegalArgumentException e) { + Log.w(Config.LOGTAG, "Could not parse SVG: " + e); return null; } }