mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix NPE
This commit is contained in:
parent
7309763d42
commit
b98ac6b4ea
1 changed files with 1 additions and 1 deletions
|
@ -71,6 +71,7 @@ public class SvgView {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wv.getStyleClass().add("svg-comp");
|
||||||
wv.getEngine()
|
wv.getEngine()
|
||||||
.setUserDataDirectory(
|
.setUserDataDirectory(
|
||||||
AppProperties.get().getDataDir().resolve("webview").toFile());
|
AppProperties.get().getDataDir().resolve("webview").toFile());
|
||||||
|
@ -126,7 +127,6 @@ public class SvgView {
|
||||||
|
|
||||||
public Optional<WebView> createWebview() {
|
public Optional<WebView> createWebview() {
|
||||||
var wv = createWebView();
|
var wv = createWebView();
|
||||||
wv.getStyleClass().add("svg-comp");
|
|
||||||
return Optional.ofNullable(wv);
|
return Optional.ofNullable(wv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue