mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-19 13:51:23 +00:00
Fix NPEs
This commit is contained in:
parent
d10397495e
commit
da6caf0c78
|
@ -50,6 +50,10 @@ public class MarkdownComp extends Comp<CompStructure<StackPane>> {
|
|||
TEMP = ShellTemp.getLocalTempDataDirectory("wv");
|
||||
}
|
||||
|
||||
if (markdown == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var hash = markdown.hashCode();
|
||||
var file = TEMP.resolve("md-" + hash + ".html");
|
||||
if (Files.exists(file)) {
|
||||
|
|
|
@ -50,7 +50,7 @@ public class ModifiedStage extends Stage {
|
|||
return;
|
||||
}
|
||||
|
||||
if (OsType.getLocal() != OsType.WINDOWS || AppPrefs.get() == null) {
|
||||
if (OsType.getLocal() != OsType.WINDOWS || AppPrefs.get() == null || AppPrefs.get().theme == null) {
|
||||
stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("seamless-frame"), false);
|
||||
stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("separate-frame"), true);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue