mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(converter) NPE fix
This commit is contained in:
parent
8a53e107fa
commit
bf783dad7a
@ -24,7 +24,7 @@ public record ProcessHeartbeat(
|
|||||||
return "STOPPED".equals(status);
|
return "STOPPED".equals(status);
|
||||||
}
|
}
|
||||||
public String progressStyle() {
|
public String progressStyle() {
|
||||||
if ("RUNNING".equals(status) && progress > 0) {
|
if ("RUNNING".equals(status) && progress != null) {
|
||||||
return """
|
return """
|
||||||
background: linear-gradient(90deg, #fff 0%%, #ccc %d%%, #fff %d%%)
|
background: linear-gradient(90deg, #fff 0%%, #ccc %d%%, #fff %d%%)
|
||||||
""".formatted(progress, progress, progress);
|
""".formatted(progress, progress, progress);
|
||||||
|
Loading…
Reference in New Issue
Block a user