From b98ac6b4ea7d71b4c01b96a5ca6102d4363678d5 Mon Sep 17 00:00:00 2001 From: crschnick Date: Tue, 7 May 2024 05:03:31 +0000 Subject: [PATCH] Fix NPE --- app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java b/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java index d7fc93ad5..d2c9bade8 100644 --- a/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java +++ b/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java @@ -71,6 +71,7 @@ public class SvgView { return null; } + wv.getStyleClass().add("svg-comp"); wv.getEngine() .setUserDataDirectory( AppProperties.get().getDataDir().resolve("webview").toFile()); @@ -126,7 +127,6 @@ public class SvgView { public Optional createWebview() { var wv = createWebView(); - wv.getStyleClass().add("svg-comp"); return Optional.ofNullable(wv); }