Skip to content

Commit

Permalink
Fix the issue with null-reference of uri in SvgFile.isSvg() (#1525) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky committed Dec 18, 2023
1 parent 963b17c commit 3fdaf38
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -38,7 +38,7 @@ public class SvgFile {
static boolean isSvg = false;

public static boolean isSvg(String uri) {
if (uri != null && uri.endsWith(".svg") || uri.toLowerCase().contains(URL_IMAGE_TYPE_SVG)) {
if (uri != null && (uri.endsWith(".svg") || uri.toLowerCase().contains(URL_IMAGE_TYPE_SVG))) {
isSvg = true;
} else {
isSvg = false;
Expand Down

0 comments on commit 3fdaf38

Please sign in to comment.